install: Remove PostgreSQL 11 support.

Django 4.2 removes this support, so Zulip has not installed with
PostgreSQL 11 since 2c20028aa4.
This commit is contained in:
Alex Vandiver
2023-05-05 12:44:38 -04:00
committed by Tim Abbott
parent fd233bd33d
commit e5ae55637e
8 changed files with 18 additions and 751 deletions

View File

@@ -176,8 +176,8 @@ if [ "$EXTERNAL_HOST" = zulip.example.com ] \
fi
case "$POSTGRESQL_VERSION" in
[0-9] | [0-9].* | 10 | 10.*)
echo "error: PostgreSQL 11 or newer is required." >&2
[0-9] | [0-9].* | 1[01] | 1[01].*)
echo "error: PostgreSQL 12 or newer is required." >&2
exit 1
;;
esac

View File

@@ -229,10 +229,10 @@ if os.path.exists("/etc/init.d/postgresql"):
]
)
if tuple(map(int, postgresql_version.split("."))) < (11,):
if tuple(map(int, postgresql_version.split("."))) < (12,):
logging.critical("Unsupported PostgreSQL version: %s", postgresql_version)
logging.info(
"Please upgrade to PostgreSQL 11 or newer first.\n"
"Please upgrade to PostgreSQL 12 or newer first.\n"
"See https://zulip.readthedocs.io/en/latest/production/"
"upgrade-or-modify.html#upgrading-postgresql"
)