bbgo/migrations/sqlite3/20210531234123_add_kline_taker_buy_columns.sql

36 lines
1.2 KiB
MySQL
Raw Normal View History

-- +up
-- +begin
ALTER TABLE `binance_klines`
ADD COLUMN `quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `binance_klines`
ADD COLUMN `taker_buy_base_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `binance_klines`
ADD COLUMN `taker_buy_quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
-- +end
-- +begin
ALTER TABLE `max_klines`
ADD COLUMN `quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `max_klines`
ADD COLUMN `taker_buy_base_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `max_klines`
ADD COLUMN `taker_buy_quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
-- +end
-- +begin
ALTER TABLE `okex_klines`
ADD COLUMN `quote_volume` DECIMAL NOT NULL DEFAULT 0.0;
ALTER TABLE `okex_klines`
ADD COLUMN `taker_buy_base_volume` DECIMAL NOT NULL DEFAULT 0.0;
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