mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
migration: extend symbol column length to 10
This commit is contained in:
parent
52bb684ef8
commit
3158cc9e49
25
migrations/mysql/20210416230730_klines_symbol_length.sql
Normal file
25
migrations/mysql/20210416230730_klines_symbol_length.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user