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:3d68ae0c78
[formerlyf6bc96829e
] [formerly3d68ae0c78
[formerlyf6bc96829e
] [formerlya2be914331
[formerly 426a8c8863ea6be7d6795ace387c214ce3b36790]]] Former-commit-id:a2be914331
Former-commit-id:c15190b7f6
[formerly0894026a79
] Former-commit-id:0b5fc6aa0e
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
|