From a078fdba0bb5f933b707285e29c28d6cebc7989c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 18 Oct 2018 22:16:41 +0000 Subject: [PATCH] [run_test.pl] Properly upgrade raster from unpackaged git-svn-id: http://svn.osgeo.org/postgis/trunk@16926 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/run_test.pl b/regress/run_test.pl index 9eb51c67f..a6ab0d00b 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -1482,7 +1482,7 @@ sub upgrade_spatial_extensions if ( $OPT_WITH_RASTER ) { if ( $OPT_UPGRADE_FROM - && ! has_split_raster_ext($OPT_UPGRADE_FROM) + && ! has_split_raster_ext($OPT_UPGRADE_FROM) ) { # upgrade of postgis must have unpackaged raster, so @@ -1502,6 +1502,10 @@ sub upgrade_spatial_extensions { my $sql = "ALTER EXTENSION postgis_raster UPDATE TO '${nextver}'"; + if ( $OPT_UPGRADE_FROM eq "unpackaged" ) { + $sql = "CREATE EXTENSION postgis_raster VERSION '${nextver}' FROM unpackaged"; + } + print "Upgrading PostGIS Raster in '${DB}' using: ${sql}\n" ; my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1"; -- 2.40.0