mirror of https://github.com/zulip/zulip.git
upgrade-zulip: Simplify PostgreSQL version check.
This is much simpler now that we do not support PostgreSQL 9.x.
This commit is contained in:
parent
1f68726cb8
commit
6dc8f748ae
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue