-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1559 from get10101/feat/hacky-resize
Allow app trader to resize open position
- Loading branch information
Showing
44 changed files
with
2,299 additions
and
371 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
coordinator/migrations/2023-10-25-120015_add_fee_to_channel/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE channels ADD COLUMN "fee_sats" BIGINT DEFAULT null; | ||
|
||
ALTER TABLE | ||
channels DROP COLUMN open_channel_fee_payment_hash; | ||
DROP INDEX IF EXISTS channels_funding_txid; | ||
DROP INDEX IF EXISTS channels_funding_txid; |
6 changes: 6 additions & 0 deletions
6
coordinator/migrations/2023-11-07-073206_add_expiry_timestamp_to_trades/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ALTER TABLE trades | ||
DROP COLUMN dlc_expiry_timestamp; | ||
|
||
-- Note: There is no down migration for removing the `Resizing` | ||
-- variant that was added to `PositionState_Type` because it is not | ||
-- feasible to remove enum variants in the db! |
5 changes: 5 additions & 0 deletions
5
coordinator/migrations/2023-11-07-073206_add_expiry_timestamp_to_trades/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ALTER TABLE trades | ||
ADD COLUMN dlc_expiry_timestamp timestamp WITH TIME ZONE; | ||
|
||
ALTER TYPE "PositionState_Type" | ||
ADD VALUE IF NOT EXISTS 'Resizing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.