avoid running truncate table in the migration script

This commit is contained in:
c9s 2022-06-17 13:57:15 +08:00
parent f81633c955
commit f13e39ad1d
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1,25 +1,4 @@
-- +up
-- +begin
TRUNCATE TABLE `binance_klines`;
-- +end
-- +begin
TRUNCATE TABLE `max_klines`;
-- +end
-- +begin
TRUNCATE TABLE `ftx_klines`;
-- +end
-- +begin
TRUNCATE TABLE `kucoin_klines`;
-- +end
-- +begin
TRUNCATE TABLE `okex_klines`;
-- +end
-- +begin
CREATE UNIQUE INDEX idx_kline_binance_unique
ON binance_klines (`symbol`, `interval`, `start_time`);