-
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.
chore(coordinator): Enrich DlcProtocolType model
We can now differentiate between opening a channel, opening a position and resizing a position.
- Loading branch information
Showing
8 changed files
with
152 additions
and
45 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
coordinator/migrations/2024-04-10-023033_add_resize_dlc_protocol_type/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,5 @@ | ||
ALTER TYPE "Protocol_Type_Type" | ||
RENAME VALUE 'open-channel' TO 'open'; | ||
|
||
ALTER TYPE "Protocol_Type_Type" | ||
RENAME VALUE 'open-position' TO 'renew'; |
9 changes: 9 additions & 0 deletions
9
coordinator/migrations/2024-04-10-023033_add_resize_dlc_protocol_type/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,9 @@ | ||
-- Must use `IF NOT EXISTS` because enum values cannot be removed on "down" migrations. | ||
ALTER TYPE "Protocol_Type_Type" | ||
ADD VALUE IF NOT EXISTS 'resize-position'; | ||
|
||
ALTER TYPE "Protocol_Type_Type" | ||
RENAME VALUE 'open' TO 'open-channel'; | ||
|
||
ALTER TYPE "Protocol_Type_Type" | ||
RENAME VALUE 'renew' TO 'open-position'; |
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
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