Update optimize-reports to enter_tag wording

This commit is contained in:
Matthias
2021-11-21 10:16:18 +01:00
parent 2a84526f04
commit 192ac88314
2 changed files with 10 additions and 8 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, 'funding_fees'):
if not has_column(cols, 'enter_tag'):
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!