mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-30 14:25:22 -05:00
improve v1 downgrade
This commit is contained in:
@@ -349,7 +349,7 @@ async fn v1_downgrade(yes: bool) -> anyhow::Result<()> {
|
|||||||
config.database.db_name,
|
config.database.db_name,
|
||||||
);
|
);
|
||||||
|
|
||||||
crate::command::wait_for_enter("start backup", yes)?;
|
crate::command::wait_for_enter("run downgrade", yes)?;
|
||||||
|
|
||||||
let db = database::init(&config.database).await?;
|
let db = database::init(&config.database).await?;
|
||||||
|
|
||||||
@@ -358,5 +358,7 @@ async fn v1_downgrade(yes: bool) -> anyhow::Result<()> {
|
|||||||
.await
|
.await
|
||||||
.context("Failed to downgrade Server schema")?;
|
.context("Failed to downgrade Server schema")?;
|
||||||
|
|
||||||
|
info!("V1 Downgrade complete. Ready to downgrade to komodo-core:1 ✅");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user