Drop indexes on renamed table

avoid naming conflicts on recreate (indexes are not renamed, and keeping
them on backup tables does not really make sense).

fixes #1396
This commit is contained in:
Matthias
2018-12-09 09:03:17 +01:00
parent 2c27736dfe
commit 3b951c3817
2 changed files with 5 additions and 0 deletions

View File

@@ -446,6 +446,8 @@ def test_migrate_new(mocker, default_conf, fee, caplog):
# Create table using the old format
engine.execute(create_table_old)
engine.execute("create index ix_trades_is_open on trades(is_open)")
engine.execute("create index ix_trades_pair on trades(pair)")
engine.execute(insert_table_old)
# fake previous backup