bbgo_origin/migrations/20210119232826_add_margin_columns.sql
2021-01-19 23:31:04 +08:00

20 lines
473 B
SQL

-- +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`;