mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
merge order_id migration into the table create sql
This commit is contained in:
parent
c78fa09f4d
commit
98f5416661
|
@ -4,6 +4,7 @@ CREATE TABLE `trades`
|
|||
`gid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
|
||||
`id` BIGINT UNSIGNED,
|
||||
`order_id` BIGINT UNSIGNED NOT NULL,
|
||||
`exchange` VARCHAR(24) NOT NULL DEFAULT '',
|
||||
`symbol` VARCHAR(8) NOT NULL,
|
||||
`price` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
-- +up
|
||||
ALTER TABLE `trades`
|
||||
ADD COLUMN `order_id` BIGINT UNSIGNED NOT NULL;
|
||||
SELECT 1;
|
||||
|
||||
-- +down
|
||||
ALTER TABLE `trades`
|
||||
DROP COLUMN `order_id`;
|
||||
SELECT 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user