bbgo_origin/migrations/mysql/20210215203116_add_pnl_column.sql

20 lines
291 B
MySQL
Raw Normal View History

2021-02-15 12:35:27 +00:00
-- +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