From 09860dc28421790d2362896ce7ee445fcd8d0800 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 5 Apr 2022 18:18:08 -0700 Subject: [PATCH] check-database-compatibility: Sort and prettify output. --- scripts/lib/check-database-compatibility.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/check-database-compatibility.py b/scripts/lib/check-database-compatibility.py index 0814e10695..aa02a7de33 100755 --- a/scripts/lib/check-database-compatibility.py +++ b/scripts/lib/check-database-compatibility.py @@ -73,8 +73,9 @@ for key, migration in loader.disk_migrations.items(): if not missing: sys.exit(0) -for migration in missing: - print(f"Migration {migration} missing in new version.") +print("Migrations which are currently applied, but missing in the new version:") +for app, migration_name in sorted(missing): + print(f" {app} - {migration_name}") current_version = parse_version_from(os.path.join(DEPLOYMENTS_DIR, "current")) logging.error(