mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add strategy column
This commit is contained in:
parent
dad5738f0b
commit
7d243e6026
19
migrations/mysql/20210215203116_add_pnl_column.sql
Normal file
19
migrations/mysql/20210215203116_add_pnl_column.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `pnl` DECIMAL NULL;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `strategy` VARCHAR(32) NULL;
|
||||
-- +end
|
||||
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` DROP COLUMN `pnl`;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` DROP COLUMN `strategy`;
|
||||
-- +end
|
18
migrations/sqlite3/20210215203111_add_pnl_column.sql
Normal file
18
migrations/sqlite3/20210215203111_add_pnl_column.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `pnl` DECIMAL NULL;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `strategy` TEXT;
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` RENAME COLUMN `pnl` TO `pnl_deleted`;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` RENAME COLUMN `strategy` TO `strategy_deleted`;
|
||||
-- +end
|
Loading…
Reference in New Issue
Block a user