ci: Install PostgreSQL 12 on focal.

The previous commit removed support for PostgreSQL 11, and PostgreSQL
10 support was removed in 11a86ec328.
This commit is contained in:
Alex Vandiver 2023-05-04 22:34:19 -04:00 committed by Tim Abbott
parent e5ae55637e
commit f32e6543be
1 changed files with 4 additions and 4 deletions

View File

@ -61,9 +61,9 @@ os_info="$(
read -r os_version_id
} <<<"$os_info"
# Pin to PostgreSQL 10 on Ubuntu 20.04, so we can test upgrading it
# Pin PostgreSQL on Ubuntu 20.04, so we can test upgrading it
if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then
export POSTGRESQL_VERSION=10
export POSTGRESQL_VERSION=12
fi
# Install
@ -76,8 +76,8 @@ else
fi
if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then
if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "10" ]; then
echo "Installer did not install the PostgreSQL 10 that we asked for!"
if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "12" ]; then
echo "Installer did not install the PostgreSQL 12 that we asked for!"
exit 1
fi
fi