Fix migration issue

This commit is contained in:
Matthias
2021-10-12 20:41:48 +02:00
parent f290ff5c9a
commit 532a9341d2
2 changed files with 4 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ def check_migrate(engine, decl_base, previous_tables) -> None:
table_back_name = get_backup_name(tabs, 'trades_bak')
# Check for latest column
if not has_column(cols, 'is_short'):
if not has_column(cols, 'funding_fees'):
logger.info(f'Running database migration for trades - backup: {table_back_name}')
migrate_trades_table(decl_base, inspector, engine, table_back_name, cols)
# Reread columns - the above recreated the table!