mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add default 0 to not null field
This commit is contained in:
parent
483f6270f4
commit
256fce484c
|
@ -1,5 +1,5 @@
|
|||
-- +up
|
||||
ALTER TABLE `trades` ADD COLUMN `order_id` INTEGER NOT NULL;
|
||||
ALTER TABLE `trades` ADD COLUMN `order_id` INTEGER NOT NULL DEFATUL 0;
|
||||
|
||||
-- +down
|
||||
ALTER TABLE `trades` RENAME COLUMN `order_id` TO `order_id_deleted`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user