staticaddr: selected swap amount migration

The selected_amount column of all previous
swaps is filled with the total value of
deposits that partook in these swaps.
This commit is contained in:
Slyghtning 2025-06-11 12:02:25 +02:00
parent 23f6c24c0c
commit 2ee772b251
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
8 changed files with 265 additions and 7 deletions

View file

@ -96,6 +96,12 @@ SELECT EXISTS (
WHERE swap_hash = $1
);
-- name: OverrideSelectedSwapAmount :exec
UPDATE static_address_swaps
SET
selected_amount = $2
WHERE swap_hash = $1;
-- name: MapDepositToSwap :exec
UPDATE
deposits