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"