From ce7d3a7e1d6ab08696a149fa8805fcb99337afa9 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Wed, 8 Jul 2026 11:40:57 +0200 Subject: [PATCH] tests(unit): fix wrong migration name --- backend/internal/service/import_service_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/internal/service/import_service_test.go b/backend/internal/service/import_service_test.go index c7619283..a53fabf0 100644 --- a/backend/internal/service/import_service_test.go +++ b/backend/internal/service/import_service_test.go @@ -13,9 +13,9 @@ import ( "github.com/pocket-id/pocket-id/backend/internal/utils" ) -// importResetTargetVersion is a real migration version the import resets the schema to. -// It only has to be at or beyond 20240817191051 (the rename_config_table migration that toggles foreign keys), so the reset exercises a foreign-key-sensitive migration. -const importResetTargetVersion = 20260726153900 +// importResetTargetVersion is a real migration version the import resets the schema to +// It only has to be at or beyond 20240817191051 (the rename_config_table migration that toggles foreign keys), so the reset exercises a foreign-key-sensitive migration +const importResetTargetVersion = 20260707170000 // openImportTestDB opens a Gorm SQLite pool on a file database using the same pragmas the application configures in production, most importantly foreign_keys(1) on every connection (normalize() is already registered by the service package's test setup) func openImportTestDB(t *testing.T, dbPath string, cfg func(*sql.DB)) *gorm.DB {