2022-05-20 08:30:29 +00:00
|
|
|
-- +up
|
|
|
|
-- +begin
|
2022-05-20 08:36:25 +00:00
|
|
|
CREATE UNIQUE INDEX idx_kline_binance_unique
|
|
|
|
ON binance_klines (`symbol`, `interval`, `start_time`);
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
CREATE UNIQUE INDEX idx_kline_max_unique
|
|
|
|
ON max_klines (`symbol`, `interval`, `start_time`);
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
CREATE UNIQUE INDEX `idx_kline_ftx_unique`
|
|
|
|
ON ftx_klines (`symbol`, `interval`, `start_time`);
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
CREATE UNIQUE INDEX `idx_kline_kucoin_unique`
|
|
|
|
ON kucoin_klines (`symbol`, `interval`, `start_time`);
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
CREATE UNIQUE INDEX `idx_kline_okex_unique`
|
|
|
|
ON okex_klines (`symbol`, `interval`, `start_time`);
|
2022-05-20 08:30:29 +00:00
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +down
|
|
|
|
|
|
|
|
-- +begin
|
2022-05-20 08:36:25 +00:00
|
|
|
DROP INDEX `idx_kline_ftx_unique` ON `ftx_klines`;
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
DROP INDEX `idx_kline_max_unique` ON `max_klines`;
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
DROP INDEX `idx_kline_binance_unique` ON `binance_klines`;
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
DROP INDEX `idx_kline_kucoin_unique` ON `kucoin_klines`;
|
|
|
|
-- +end
|
|
|
|
|
|
|
|
-- +begin
|
|
|
|
DROP INDEX `idx_kline_okex_unique` ON `okex_klines`;
|
2022-05-20 08:30:29 +00:00
|
|
|
-- +end
|