mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
avoid running truncate table in the migration script
This commit is contained in:
parent
f81633c955
commit
f13e39ad1d
|
@ -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`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user