From 98a05257eaf4ca6555ffc179a9250a7cfb3a903c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 28 Feb 2022 11:09:52 -0800 Subject: [PATCH] scripts: Print names of missing migrations in compatibility check. This will make it much easier to debug any situations where this happens. --- scripts/lib/check-database-compatibility.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/check-database-compatibility.py b/scripts/lib/check-database-compatibility.py index 7596166e09..81efe91dd1 100755 --- a/scripts/lib/check-database-compatibility.py +++ b/scripts/lib/check-database-compatibility.py @@ -26,6 +26,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.") + current_version = parse_version_from(os.path.join(DEPLOYMENTS_DIR, "current")) logging.error( "This is not an upgrade -- the current deployment (version %s) "