mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
add is_futures column migration sql
This commit is contained in:
parent
874c7b39fa
commit
5cc9e74823
18
migrations/mysql/20211205162043_add_is_futures_column.sql
Normal file
18
migrations/mysql/20211205162043_add_is_futures_column.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `is_futures` BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `orders` ADD COLUMN `is_futures` BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` DROP COLUMN `is_futures`;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `orders` DROP COLUMN `is_futures`;
|
||||
-- +end
|
18
migrations/sqlite3/20211205162302_add_is_futures_column.sql
Normal file
18
migrations/sqlite3/20211205162302_add_is_futures_column.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD COLUMN `is_futures` BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `orders` ADD COLUMN `is_futures` BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `trades` RENAME COLUMN `is_futures` TO `is_futures_deleted`;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `orders` RENAME COLUMN `is_futures` TO `is_futures_deleted`;
|
||||
-- +end
|
Loading…
Reference in New Issue
Block a user