Skip to content

Commit

Permalink
avoid running truncate table in the migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 17, 2022
1 parent f81633c commit f13e39a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions migrations/mysql/20220520140707_kline_unique_idx.sql
Original file line number Diff line number Diff line change
@@ -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`);
Expand Down

0 comments on commit f13e39a

Please sign in to comment.