From 4446e9688955c8f42880e2d6b7d97e5479c5a70c Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 11 Sep 2025 21:17:06 +0100 Subject: [PATCH] feat(hydra): Bump database version --- src/service/migrations.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/service/migrations.rs b/src/service/migrations.rs index 586d6249..4754058b 100644 --- a/src/service/migrations.rs +++ b/src/service/migrations.rs @@ -27,7 +27,7 @@ use crate::{Services, media}; /// - If database is opened at lesser version we apply migrations up to this. /// Note that named-feature migrations may also be performed when opening at /// equal or lesser version. These are expected to be backward-compatible. -pub(crate) const DATABASE_VERSION: u64 = 17; +pub(crate) const DATABASE_VERSION: u64 = 18; pub(crate) async fn migrations(services: &Services) -> Result<()> { let users_count = services.users.count().await; @@ -138,6 +138,11 @@ async fn migrate(services: &Services) -> Result<()> { info!("Migration: Bumped database version to 17"); } + if services.globals.db.database_version().await < 18 { + services.globals.db.bump_database_version(18); + info!("Migration: Bumped database version to 18") + } + assert_eq!( services.globals.db.database_version().await, DATABASE_VERSION,