Skip to content

Commit bfe6945

Browse files
authored
refactor: add migration for signing_order_request_outbox_submitted_completed_idx (#2942)
1 parent 76325a9 commit bfe6945

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

libs/datastore/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141
}
4242
dbs = map[string]*sqlx.DB{}
4343
// CurrentMigrationVersion holds the default migration version
44-
CurrentMigrationVersion = uint(70)
44+
CurrentMigrationVersion = uint(71)
4545
// MigrationTracks holds the migration version for a given track (eyeshade, promotion, wallet)
4646
MigrationTracks = map[string]uint{
4747
"eyeshade": 20,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP INDEX CONCURRENTLY signing_order_request_outbox_submitted_completed_idx;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX CONCURRENTLY IF NOT EXISTS signing_order_request_outbox_submitted_completed_idx ON signing_order_request_outbox (submitted_at DESC, completed_at) WHERE completed_at IS NOT NULL AND submitted_at IS NOT NULL;

0 commit comments

Comments
 (0)