fix: repair chained imports and track blocked evidence dependencies
Assistant: codex Assistant-Model: gpt-6.1-sol Assistant-Session: 01a1046e-465c-7d43-8c4c-d10f0a1feadd
This commit is contained in:
parent
28b567e588
commit
146f4e1dd3
21 changed files with 869 additions and 95 deletions
|
|
@ -101,6 +101,10 @@ def build_parser() -> argparse.ArgumentParser:
|
|||
help="DSN; defaults to AUDIT_CORE_DATABASE_URL",
|
||||
)
|
||||
migrate_parser.add_argument("--schema", default="audit_core")
|
||||
migrate_parser.add_argument(
|
||||
"--source-id", default=None,
|
||||
help="Stable import identity; retain it if the SQLite file moves (defaults to its absolute path).",
|
||||
)
|
||||
migrate_parser.add_argument(
|
||||
"--dry-run", action="store_true",
|
||||
help="Report what would move without writing anything.",
|
||||
|
|
@ -233,7 +237,7 @@ def migrate_store(args: argparse.Namespace) -> int:
|
|||
|
||||
backend = PostgresAuditBackend(dsn, schema=args.schema)
|
||||
try:
|
||||
report = migrate(args.source, backend)
|
||||
report = migrate(args.source, backend, source_id=args.source_id)
|
||||
finally:
|
||||
backend.close()
|
||||
print(report.summary())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue