Update upgade.sh

This commit is contained in:
Olivier DEBAUCHE authored and GitHub committed 2021-06-12 10:04:21 +02:00
1 parent e823375ca3
commit e7765ed295
1 file changed
+2 -2
+2 -2
View File
@@ -6,14 +6,14 @@ docker run --rm \
-v /${CWD}://tmp \
-v openstreetmap-data://var/lib/postgresql/12/main \
-w //tmp \
postgis/postgis:12-3.1 \
postgres:12 \
pg_dumpall -c -v -U prostgres > dump.sql
docker run --rm \
-v /${CWD}://tmp \
-v openstreetmap-data://var/lib/postgresql/13/main \
-w //tmp \
postgis/postgis:13-3.1 \
postgres:13 \
psql -U postgres -d gis < dump.sql
sudo -u postgres psql -d gis -c "SELECT PostGIS_Extensions_Upgrade();"