mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 14:33:53 +00:00
migration: set net profit from profit
This commit is contained in:
parent
acf213b991
commit
b574c25a56
|
@ -4,7 +4,9 @@ ALTER TABLE `positions`
|
|||
ADD COLUMN `net_profit` DECIMAL(16, 8) DEFAULT 0.00000000 NOT NULL
|
||||
;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
UPDATE positions SET net_profit = profit WHERE net_profit = 0.0;
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user