check-database-compatibility: Sort and prettify output.

This commit is contained in:
Alex Vandiver 2022-04-05 18:18:08 -07:00 committed by Tim Abbott
parent 488aaef9b7
commit 09860dc284
1 changed files with 3 additions and 2 deletions

View File

@ -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(