amend: vacuum databases after upgrade due to: http://www.postgresql.org/docs/9.3/static/release-9-3-2.html E.4.2 VACUUM tests amend: update viz xdat to use the newer PostgreSQL jdbc driver amend: fix formatting Change-Id: Icda3348eea3e5edd879acb3a897bc530e73fb7f3 Former-commit-id: 426a8c8863ea6be7d6795ace387c214ce3b36790
18 lines
620 B
Bash
18 lines
620 B
Bash
#!/bin/bash
|
|
|
|
source settings.sh
|
|
|
|
POSTGIS_UPGRADE=${POSTGIS_CONTRIB}/postgis_upgrade_20_minor.sql
|
|
RTPOSTGIS_UPGRADE=${POSTGIS_CONTRIB}/rtpostgis_upgrade_20_minor.sql
|
|
TOPOLOGY_UPGRADE=${POSTGIS_CONTRIB}/topology_upgrade_20_minor.sql
|
|
|
|
echo "=== postgis upgrade ===" >> errors.txt
|
|
${PSQL} -U ${POSTGRESQL_USER} -f ${POSTGIS_UPGRADE} -d ${1} >> errors.txt 2>&1
|
|
|
|
echo "=== rtpostgis upgrade ===" >> errors.txt
|
|
${PSQL} -U ${POSTGRESQL_USER} -f ${RTPOSTGIS_UPGRADE} -d ${1} >> errors.txt 2>&1
|
|
|
|
echo "=== topology upgrade ===" >> errors.txt
|
|
${PSQL} -U ${POSTGRESQL_USER} -f ${TOPOLOGY_UPGRADE} -d ${1} >> errors.txt 2>&1
|
|
|
|
exit 0
|