Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions loopdb/sqlc/migrations/000013_batcher_key_outpoint.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ WITH RECURSIVE seq(i) AS (
SELECT i + 1 FROM seq WHERE i < 32
)
INSERT INTO sweeps2 (
id, swap_hash, batch_id, outpoint, amt, completed
swap_hash, batch_id, outpoint, amt, completed
)
SELECT
id,
swap_hash,
batch_id,
(
Expand All @@ -60,7 +59,8 @@ SELECT
) || ':' || CAST(outpoint_index AS TEXT),
amt,
completed
FROM sweeps;
FROM sweeps
ORDER BY id ASC;

-- Rename tables.
ALTER TABLE sweeps RENAME TO sweeps_old;
Expand Down