mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
migrations: fix default symbol char length
This commit is contained in:
parent
157d1f3bbe
commit
9b31d6425d
|
@ -6,7 +6,7 @@ CREATE TABLE `klines`
|
||||||
`start_time` DATETIME(3) NOT NULL,
|
`start_time` DATETIME(3) NOT NULL,
|
||||||
`end_time` DATETIME(3) NOT NULL,
|
`end_time` DATETIME(3) NOT NULL,
|
||||||
`interval` VARCHAR(3) NOT NULL,
|
`interval` VARCHAR(3) NOT NULL,
|
||||||
`symbol` VARCHAR(7) NOT NULL,
|
`symbol` VARCHAR(20) NOT NULL,
|
||||||
`open` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
`open` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||||
`high` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
`high` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||||
`low` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
`low` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||||
|
|
|
@ -21,7 +21,6 @@ CREATE TABLE `positions`
|
||||||
`side` VARCHAR(4) NOT NULL, -- side of the trade
|
`side` VARCHAR(4) NOT NULL, -- side of the trade
|
||||||
`exchange` VARCHAR(12) NOT NULL, -- exchange of the trade
|
`exchange` VARCHAR(12) NOT NULL, -- exchange of the trade
|
||||||
`traded_at` DATETIME(3) NOT NULL
|
`traded_at` DATETIME(3) NOT NULL
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
-- +down
|
-- +down
|
||||||
|
|
Loading…
Reference in New Issue
Block a user