mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
20 lines
473 B
SQL
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`;
|