Skip to content

Commit 91ff83a

Browse files
authored
Merge pull request #915 from starius/fix-migration-13
loopdb: fix migration 13 for Postgres
2 parents bfe7991 + 38b7ecd commit 91ff83a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

loopdb/sqlc/migrations/000013_batcher_key_outpoint.up.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ WITH RECURSIVE seq(i) AS (
4848
SELECT i + 1 FROM seq WHERE i < 32
4949
)
5050
INSERT INTO sweeps2 (
51-
id, swap_hash, batch_id, outpoint, amt, completed
51+
swap_hash, batch_id, outpoint, amt, completed
5252
)
5353
SELECT
54-
id,
5554
swap_hash,
5655
batch_id,
5756
(
@@ -60,7 +59,8 @@ SELECT
6059
) || ':' || CAST(outpoint_index AS TEXT),
6160
amt,
6261
completed
63-
FROM sweeps;
62+
FROM sweeps
63+
ORDER BY id ASC;
6464

6565
-- Rename tables.
6666
ALTER TABLE sweeps RENAME TO sweeps_old;

0 commit comments

Comments
 (0)