bbgo_origin/migrations/20210119232826_add_margin_columns.sql

20 lines
473 B
MySQL
Raw Normal View History

2021-01-19 15:30:39 +00:00
-- +up
ALTER TABLE `trades`
ADD COLUMN `is_margin` BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN `is_isolated` BOOLEAN NOT NULL DEFAULT FALSE
;
ALTER TABLE `orders`
ADD COLUMN `is_margin` BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN `is_isolated` BOOLEAN NOT NULL DEFAULT FALSE
;
-- +down
ALTER TABLE `trades`
DROP COLUMN `is_margin`,
DROP COLUMN `is_isolated`;
ALTER TABLE `orders`
DROP COLUMN `is_margin`,
DROP COLUMN `is_isolated`;