forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [torrust#56] take source DB in upgrader command from args
Instead of reading the current configuration.
- Loading branch information
1 parent
aabc3ef
commit 217fae2
Showing
3 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
//! Upgrade command. | ||
//! It updates the application from version v1.0.0 to v2.0.0. | ||
//! You can execute it with: `cargo run --bin upgrade ./data_v2.db ./uploads` | ||
//! You can execute it with: `cargo run --bin upgrade ./data.db ./data_v2.db ./uploads` | ||
|
||
use torrust_index_backend::upgrades::from_v1_0_0_to_v2_0_0::upgrader::upgrade; | ||
use torrust_index_backend::upgrades::from_v1_0_0_to_v2_0_0::upgrader::run_upgrader; | ||
|
||
#[actix_web::main] | ||
async fn main() { | ||
upgrade().await; | ||
run_upgrader().await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters