mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
migrations: fix symbol lengths
This commit is contained in:
parent
e11db4a2d1
commit
3ce9d20a2b
|
@ -6,7 +6,7 @@ CREATE TABLE `profits`
|
||||||
`strategy` VARCHAR(32) NOT NULL,
|
`strategy` VARCHAR(32) NOT NULL,
|
||||||
`strategy_instance_id` VARCHAR(64) NOT NULL,
|
`strategy_instance_id` VARCHAR(64) NOT NULL,
|
||||||
|
|
||||||
`symbol` VARCHAR(8) NOT NULL,
|
`symbol` VARCHAR(30) NOT NULL,
|
||||||
|
|
||||||
-- average_cost is the position average cost
|
-- average_cost is the position average cost
|
||||||
`average_cost` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
`average_cost` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||||
|
@ -25,7 +25,7 @@ CREATE TABLE `profits`
|
||||||
|
|
||||||
`quote_currency` VARCHAR(10) NOT NULL,
|
`quote_currency` VARCHAR(10) NOT NULL,
|
||||||
|
|
||||||
`base_currency` VARCHAR(10) NOT NULL,
|
`base_currency` VARCHAR(15) NOT NULL,
|
||||||
|
|
||||||
-- -------------------------------------------------------
|
-- -------------------------------------------------------
|
||||||
-- embedded trade data --
|
-- embedded trade data --
|
||||||
|
|
|
@ -6,9 +6,9 @@ CREATE TABLE `positions`
|
||||||
`strategy` VARCHAR(32) NOT NULL,
|
`strategy` VARCHAR(32) NOT NULL,
|
||||||
`strategy_instance_id` VARCHAR(64) NOT NULL,
|
`strategy_instance_id` VARCHAR(64) NOT NULL,
|
||||||
|
|
||||||
`symbol` VARCHAR(20) NOT NULL,
|
`symbol` VARCHAR(32) NOT NULL,
|
||||||
`quote_currency` VARCHAR(10) NOT NULL,
|
`quote_currency` VARCHAR(10) NOT NULL,
|
||||||
`base_currency` VARCHAR(10) NOT NULL,
|
`base_currency` VARCHAR(15) NOT NULL,
|
||||||
|
|
||||||
-- average_cost is the position average cost
|
-- average_cost is the position average cost
|
||||||
`average_cost` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
`average_cost` DECIMAL(16, 8) UNSIGNED NOT NULL,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
-- +up
|
-- +up
|
||||||
-- +begin
|
-- +begin
|
||||||
ALTER TABLE profits
|
ALTER TABLE profits
|
||||||
CHANGE symbol symbol VARCHAR(20) NOT NULL;
|
CHANGE symbol symbol VARCHAR(32) NOT NULL;
|
||||||
-- +end
|
-- +end
|
||||||
|
|
||||||
-- +down
|
-- +down
|
||||||
|
|
Loading…
Reference in New Issue
Block a user