diff --git a/scripts/shinkan/shinkan-backup-manifest b/scripts/shinkan/shinkan-backup-manifest index 9d459bd..fd210c9 100644 --- a/scripts/shinkan/shinkan-backup-manifest +++ b/scripts/shinkan/shinkan-backup-manifest @@ -140,6 +140,7 @@ def query_db_metadata(tcfg, dump_path): # Fallback: parse migrations and table row counts from plain SQL dump if detect_dump_format(dump_path) == 'plain': + parse_migrations = not migrations in_copy = False curr_table = None tcount = 0 @@ -163,7 +164,7 @@ def query_db_metadata(tcfg, dump_path): tcount = 0 else: tcount += 1 - if curr_table == 'schema_migrations' and not migrations: + if parse_migrations and curr_table == 'schema_migrations': parts = line.rstrip('\r\n').split('\t') if len(parts) >= 2: migrations.append(parts[1])