Skip to content

Commit

Permalink
Merge pull request #78 from lfittl/add-support-for-postgres-13
Browse files Browse the repository at this point in the history
Add support for Postgres 13
  • Loading branch information
Lukas Fittl (MSFT) authored Jun 25, 2020
2 parents e225ac1 + ed8e007 commit 48da8d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions travis/install_custom_pg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if [ "$(ls -A postgresql)" ]; then
git -C postgresql pull
else
pgmajornum="${PGVERSION%%.*}"
if [ "${pgmajornum}" -gt '12' ]; then
# twelve is highest stable build; use master for higher
if [ "${pgmajornum}" -gt '13' ]; then
# 13 is highest stable build; use master for higher
gitref="master"
elif [ "${pgmajornum}" -gt '9' ]; then
gitref="REL_${PGVERSION}_STABLE"
Expand Down
8 changes: 4 additions & 4 deletions travis/setup_apt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FCC7D46ACCC4CF8
sudo rm -f /etc/apt/sources.list.d/google-chrome*
sudo rm -f /etc/apt/sources.list.d/pgdg.list

# add the PostgreSQL 12 repository
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 12" >> /etc/apt/sources.list.d/postgresql.list'
# add the PostgreSQL 13 repository
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 13" >> /etc/apt/sources.list.d/postgresql.list'

# need testing repository after version 12
if [ "${PGVERSION%%.*}" -gt '12' ]; then
# need testing repository after version 13
if [ "${PGVERSION%%.*}" -gt '13' ]; then
# add a PostgreSQL testing repository
sudo sh -Ec 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-testing main ${PGVERSION}" >> /etc/apt/sources.list.d/postgresql.list'

Expand Down

0 comments on commit 48da8d5

Please sign in to comment.