From 45065c23d566eb54207df243efc768e854e06ab9 Mon Sep 17 00:00:00 2001 From: shaw Date: Wed, 22 Apr 2026 18:36:44 +0800 Subject: [PATCH] fix(ci): run 108a migration before 109 in backfill integration test --- .../auth_identity_compat_backfill_integration_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/internal/repository/auth_identity_compat_backfill_integration_test.go b/backend/internal/repository/auth_identity_compat_backfill_integration_test.go index 56b37512..7e34777a 100644 --- a/backend/internal/repository/auth_identity_compat_backfill_integration_test.go +++ b/backend/internal/repository/auth_identity_compat_backfill_integration_test.go @@ -20,6 +20,10 @@ func TestAuthIdentityCompatBackfillMigration_AllowsLongReportTypes(t *testing.T) migration108SQL, err := os.ReadFile(migration108Path) require.NoError(t, err) + migration108aPath := filepath.Join("..", "..", "migrations", "108a_widen_auth_identity_migration_report_type.sql") + migration108aSQL, err := os.ReadFile(migration108aPath) + require.NoError(t, err) + migration109Path := filepath.Join("..", "..", "migrations", "109_auth_identity_compat_backfill.sql") migration109SQL, err := os.ReadFile(migration109Path) require.NoError(t, err) @@ -41,6 +45,9 @@ ALTER TABLE users _, err = tx.ExecContext(ctx, string(migration108SQL)) require.NoError(t, err) + _, err = tx.ExecContext(ctx, string(migration108aSQL)) + require.NoError(t, err) + var userID int64 require.NoError(t, tx.QueryRowContext(ctx, ` INSERT INTO users (email, password_hash, role, status, balance, concurrency)