bbgo_origin/migrations/mysql/20210421091430_increase_symbol_length.sql

26 lines
585 B
MySQL
Raw Normal View History

2021-04-21 02:20:44 +00:00
-- +up
ALTER TABLE `klines`
MODIFY COLUMN `symbol` VARCHAR(12) NOT NULL;
ALTER TABLE `okex_klines`
MODIFY COLUMN `symbol` VARCHAR(12) NOT NULL;
ALTER TABLE `binance_klines`
MODIFY COLUMN `symbol` VARCHAR(12) NOT NULL;
ALTER TABLE `max_klines`
MODIFY COLUMN `symbol` VARCHAR(12) NOT NULL;
-- +down
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;