mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 23:35:14 +00:00
34 lines
767 B
MySQL
34 lines
767 B
MySQL
|
-- +up
|
||
|
-- +begin
|
||
|
ALTER TABLE `trades` ADD COLUMN `is_margin` BOOLEAN NOT NULL DEFAULT FALSE;
|
||
|
-- +end
|
||
|
-- +begin
|
||
|
ALTER TABLE `trades` ADD COLUMN `is_isolated` BOOLEAN NOT NULL DEFAULT FALSE;
|
||
|
-- +end
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `orders` ADD COLUMN `is_margin` BOOLEAN NOT NULL DEFAULT FALSE;
|
||
|
-- +end
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `orders` ADD COLUMN `is_isolated` BOOLEAN NOT NULL DEFAULT FALSE;
|
||
|
-- +end
|
||
|
|
||
|
-- +down
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `trades` RENAME COLUMN `is_margin` TO `is_margin_deleted`;
|
||
|
-- +end
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `trades` RENAME COLUMN `is_isolated` TO `is_isolated_deleted`;
|
||
|
-- +end
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `orders` RENAME COLUMN `is_margin` TO `is_margin_deleted`;
|
||
|
-- +end
|
||
|
|
||
|
-- +begin
|
||
|
ALTER TABLE `orders` RENAME COLUMN `is_isolated` TO `is_isolated_deleted`;
|
||
|
-- +end
|