migration: extend symbol column length to 10

This commit is contained in:
Jui-Nan Lin 2021-04-16 23:11:40 +08:00
parent 52bb684ef8
commit 3158cc9e49

View File

@ -0,0 +1,25 @@
-- +up
ALTER TABLE `klines`
MODIFY COLUMN `symbol` VARCHAR(10) NOT NULL;
ALTER TABLE `okex_klines`
MODIFY COLUMN `symbol` VARCHAR(10) NOT NULL;
ALTER TABLE `binance_klines`
MODIFY COLUMN `symbol` VARCHAR(10) NOT NULL;
ALTER TABLE `max_klines`
MODIFY COLUMN `symbol` VARCHAR(10) NOT NULL;
-- +down
ALTER TABLE `klines`
MODIFY COLUMN `symbol` VARCHAR(7) NOT NULL;
ALTER TABLE `okex_klines`
MODIFY COLUMN `symbol` VARCHAR(7) NOT NULL;
ALTER TABLE `binance_klines`
MODIFY COLUMN `symbol` VARCHAR(7) NOT NULL;
ALTER TABLE `max_klines`
MODIFY COLUMN `symbol` VARCHAR(7) NOT NULL;