fix klines table migration

This commit is contained in:
c9s 2021-12-26 02:40:00 +08:00
parent b79ab5d68d
commit f72221e804
2 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,12 @@ ALTER TABLE `okex_klines`
ADD COLUMN `taker_buy_base_volume` DECIMAL(32, 8) NOT NULL DEFAULT 0.0,
ADD COLUMN `taker_buy_quote_volume` DECIMAL(32, 8) NOT NULL DEFAULT 0.0;
-- +end
-- +begin
ALTER TABLE `klines`
ADD COLUMN `quote_volume` DECIMAL(32, 8) NOT NULL DEFAULT 0.0,
ADD COLUMN `taker_buy_base_volume` DECIMAL(32, 8) NOT NULL DEFAULT 0.0,
ADD COLUMN `taker_buy_quote_volume` DECIMAL(32, 8) NOT NULL DEFAULT 0.0;
-- +end
-- +down
-- +begin

View File

@ -23,5 +23,13 @@ ALTER TABLE `okex_klines`
ALTER TABLE `okex_klines`
ADD COLUMN `taker_buy_quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
-- +end
-- +begin
ALTER TABLE `klines`
ADD COLUMN `quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `klines`
ADD COLUMN `taker_buy_base_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `klines`
ADD COLUMN `taker_buy_quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
-- +end
-- +down