From c7c801c8cd4eac4914b5c4bf79c00c471ef9f7fe Mon Sep 17 00:00:00 2001 From: Kasper Date: Tue, 4 Aug 2026 10:29:18 +0200 Subject: [PATCH] Run only first SQL migration before importing json --- src-native/migrate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-native/migrate.rs b/src-native/migrate.rs index 890afb0..b2aa0e1 100644 --- a/src-native/migrate.rs +++ b/src-native/migrate.rs @@ -29,7 +29,7 @@ pub async fn migrate_to_sqlite(paths: &Paths) -> Result<()> { .context("Error connecting to created library database")?; sqlx::migrate!("./src-native/migrations") - .run(&mut connection) + .run_to(1, &mut connection) .await .context("Could not run database migrations")?; -- 2.51.2