diff --git a/backend/internal/repository/migrations_runner.go b/backend/internal/repository/migrations_runner.go index 155dfaa11a..285326537d 100644 --- a/backend/internal/repository/migrations_runner.go +++ b/backend/internal/repository/migrations_runner.go @@ -53,7 +53,7 @@ const migrationsLockRetryInterval = 500 * time.Millisecond const nonTransactionalMigrationSuffix = "_notx.sql" const paymentOrdersOutTradeNoUniqueMigration = "120_enforce_payment_orders_out_trade_no_unique_notx.sql" const paymentOrdersOutTradeNoUniqueIndex = "paymentorder_out_trade_no_unique" -const schedulerOutboxPendingDedupKeyMigration = "152_scheduler_outbox_pending_dedup_key_index_notx.sql" +const schedulerOutboxPendingDedupKeyMigration = "153_scheduler_outbox_pending_dedup_key_index_notx.sql" const schedulerOutboxPendingDedupKeyIndex = "idx_scheduler_outbox_pending_dedup_key" type migrationChecksumCompatibilityRule struct { diff --git a/backend/internal/repository/migrations_runner_notx_test.go b/backend/internal/repository/migrations_runner_notx_test.go index f5453c4bd0..c9f6a2cdf1 100644 --- a/backend/internal/repository/migrations_runner_notx_test.go +++ b/backend/internal/repository/migrations_runner_notx_test.go @@ -201,7 +201,7 @@ func TestApplyMigrationsFS_SchedulerOutboxPendingDedupKeyMigration_DropsInvalidI prepareMigrationsBootstrapExpectations(mock) mock.ExpectQuery("SELECT checksum FROM schema_migrations WHERE filename = \\$1"). - WithArgs("152_scheduler_outbox_pending_dedup_key_index_notx.sql"). + WithArgs("153_scheduler_outbox_pending_dedup_key_index_notx.sql"). WillReturnError(sql.ErrNoRows) mock.ExpectQuery("SELECT EXISTS \\("). WithArgs("idx_scheduler_outbox_pending_dedup_key"). @@ -211,14 +211,14 @@ func TestApplyMigrationsFS_SchedulerOutboxPendingDedupKeyMigration_DropsInvalidI mock.ExpectExec("CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS idx_scheduler_outbox_pending_dedup_key"). WillReturnResult(sqlmock.NewResult(0, 0)) mock.ExpectExec("INSERT INTO schema_migrations \\(filename, checksum\\) VALUES \\(\\$1, \\$2\\)"). - WithArgs("152_scheduler_outbox_pending_dedup_key_index_notx.sql", sqlmock.AnyArg()). + WithArgs("153_scheduler_outbox_pending_dedup_key_index_notx.sql", sqlmock.AnyArg()). WillReturnResult(sqlmock.NewResult(1, 1)) mock.ExpectExec("SELECT pg_advisory_unlock\\(\\$1\\)"). WithArgs(migrationsAdvisoryLockID). WillReturnResult(sqlmock.NewResult(0, 1)) fsys := fstest.MapFS{ - "152_scheduler_outbox_pending_dedup_key_index_notx.sql": &fstest.MapFile{ + "153_scheduler_outbox_pending_dedup_key_index_notx.sql": &fstest.MapFile{ Data: []byte(` CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS idx_scheduler_outbox_pending_dedup_key ON scheduler_outbox (dedup_key) diff --git a/backend/migrations/151_scheduler_outbox_dedup_key.sql b/backend/migrations/152_scheduler_outbox_dedup_key.sql similarity index 100% rename from backend/migrations/151_scheduler_outbox_dedup_key.sql rename to backend/migrations/152_scheduler_outbox_dedup_key.sql diff --git a/backend/migrations/152_scheduler_outbox_pending_dedup_key_index_notx.sql b/backend/migrations/153_scheduler_outbox_pending_dedup_key_index_notx.sql similarity index 100% rename from backend/migrations/152_scheduler_outbox_pending_dedup_key_index_notx.sql rename to backend/migrations/153_scheduler_outbox_pending_dedup_key_index_notx.sql