From 6dc8f748aed246c6a4a87a2f5b76c94aeb492c45 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 5 Jun 2023 21:12:55 +0000 Subject: [PATCH] upgrade-zulip: Simplify PostgreSQL version check. This is much simpler now that we do not support PostgreSQL 9.x. --- scripts/lib/upgrade-zulip-stage-2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2 index 2c6a74e67a..793eee2e02 100755 --- a/scripts/lib/upgrade-zulip-stage-2 +++ b/scripts/lib/upgrade-zulip-stage-2 @@ -230,7 +230,7 @@ if os.path.exists("/etc/init.d/postgresql"): ] ) - if tuple(map(int, postgresql_version.split("."))) < (12,): + if int(postgresql_version) < 12: logging.critical("Unsupported PostgreSQL version: %s", postgresql_version) logging.info( "Please upgrade to PostgreSQL 12 or newer first.\n"