migrations: fix default symbol char length

This commit is contained in:
c9s 2022-03-11 13:57:21 +08:00
parent 157d1f3bbe
commit 9b31d6425d
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,7 @@ CREATE TABLE `klines`
`start_time` DATETIME(3) NOT NULL,
`end_time` DATETIME(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,
`high` DECIMAL(16, 8) UNSIGNED NOT NULL,
`low` DECIMAL(16, 8) UNSIGNED NOT NULL,

View File

@ -21,7 +21,6 @@ CREATE TABLE `positions`
`side` VARCHAR(4) NOT NULL, -- side of the trade
`exchange` VARCHAR(12) NOT NULL, -- exchange of the trade
`traded_at` DATETIME(3) NOT NULL
);
-- +down