Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

check-database-compatibility: Fix NameError for old remote databases.

Anders Kaseorgfd3bf8200ab1
diff --git a/scripts/lib/check-database-compatibility b/scripts/lib/check-database-compatibility
index 50cc059c622..c3f53fd513c 100755
--- a/scripts/lib/check-database-compatibility
+++ b/scripts/lib/check-database-compatibility
@@ -65,7 +65,7 @@ if os.path.exists("/etc/init.d/postgresql") and os.path.exists("/etc/zulip/zulip
sys.exit(1)
if django_pg_version < 14:
- logging.critical("Unsupported PostgreSQL version: %d", postgresql_version)
+ logging.critical("Unsupported PostgreSQL version: %d", django_pg_version)
logging.info(
"Please upgrade to PostgreSQL 14 or newer first.\n"
"See https://zulip.readthedocs.io/en/stable/production/"