mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Don't bump version if it's already bumped
This commit is contained in:
1 parent
48c36d6f17
commit
a6fae7498d
1 file changed
+4
-2
@@ -250,8 +250,10 @@ async fn migrate(services: &Services) -> Result<()> {
|
||||
migration(services).await?;
|
||||
},
|
||||
| DatabaseMigrationStep::VersionBump(version) => {
|
||||
services.globals.db.bump_database_version(*version);
|
||||
info!("Bumped database version to {version}.");
|
||||
if services.globals.db.database_version().await < *version {
|
||||
services.globals.db.bump_database_version(*version);
|
||||
info!("Bumped database version to {version}.");
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user