-
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): Add trader_pnl to trade_params table
Instead of allowing to insert trades early into the database (via the `is_complete` column, which is now gone).
- Loading branch information
Showing
8 changed files
with
64 additions
and
73 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
coordinator/migrations/2024-04-10-015155_move_pnl_to_trade_params/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 TABLE trades | ||
ADD COLUMN is_complete BOOLEAN NOT NULL DEFAULT true; | ||
|
||
ALTER TABLE trade_params | ||
DROP COLUMN IF EXISTS trader_pnl_sat; |
5 changes: 5 additions & 0 deletions
5
coordinator/migrations/2024-04-10-015155_move_pnl_to_trade_params/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 | ||
DROP COLUMN IF EXISTS "is_complete"; | ||
|
||
ALTER TABLE trade_params | ||
ADD COLUMN trader_pnl_sat BIGINT; |
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