fix: Don't bump version if it's already bumped

This commit is contained in:
Ginger authored and Ellis Git committed 2026-10-01 18:43:54 +00:00
1 parent 48c36d6f17
commit a6fae7498d
1 file changed
+4 -2
+4 -2
View File
@@ -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}.");
}
},
}
}