Skip to content

Commit 92a8726

Browse files
committed
loopdb: staticaddr fast flag migration and queries
1 parent 83c8666 commit 92a8726

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Drop 'fast' flag from static_address_swaps
2+
ALTER TABLE static_address_swaps DROP COLUMN fast;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Add 'fast' flag to static_address_swaps, default false
2+
ALTER TABLE static_address_swaps ADD COLUMN fast BOOLEAN NOT NULL DEFAULT false;

loopdb/sqlc/models.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

loopdb/sqlc/queries/static_address_loopin.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ INSERT INTO static_address_swaps (
99
selected_amount,
1010
htlc_tx_fee_rate_sat_kw,
1111
htlc_timeout_sweep_tx_id,
12-
htlc_timeout_sweep_address
12+
htlc_timeout_sweep_address,
13+
fast
1314
) VALUES (
1415
$1,
1516
$2,
@@ -20,7 +21,8 @@ INSERT INTO static_address_swaps (
2021
$7,
2122
$8,
2223
$9,
23-
$10
24+
$10,
25+
$11
2426
);
2527

2628
-- name: UpdateStaticAddressLoopIn :exec

loopdb/sqlc/static_address_loopin.sql.go

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)