upgrade-zulip: Simplify PostgreSQL version check.

This is much simpler now that we do not support PostgreSQL 9.x.
This commit is contained in:
Alex Vandiver 2023-06-05 21:12:55 +00:00 committed by Tim Abbott
parent 1f68726cb8
commit 6dc8f748ae
1 changed files with 1 additions and 1 deletions

View File

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