From 267aca4fbee412c492938075369e6b45bbb692ff Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 29 Oct 2026 16:48:59 +0100 Subject: [PATCH] fix(manifest): collect all migrations when parsing plain SQL dump --- scripts/shinkan/shinkan-backup-manifest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])