diff --git a/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.down.sql b/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.down.sql new file mode 100644 index 000000000..a2db002b8 --- /dev/null +++ b/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.down.sql @@ -0,0 +1,3 @@ +DROP INDEX IF EXISTS idx_round_txid; + +CREATE UNIQUE INDEX IF NOT EXISTS idx_round_txid ON round(txid); \ No newline at end of file diff --git a/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.up.sql b/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.up.sql new file mode 100644 index 000000000..4265ee1ad --- /dev/null +++ b/server/internal/infrastructure/db/sqlite/migration/20250410112433_fix_txid_index.up.sql @@ -0,0 +1,3 @@ +DROP INDEX IF EXISTS idx_round_txid; + +CREATE INDEX IF NOT EXISTS idx_round_txid ON round(txid); \ No newline at end of file