From: Sandro Santilli Date: Thu, 18 Oct 2018 22:16:41 +0000 (+0000) Subject: [run_test.pl] Properly upgrade raster from unpackaged X-Git-Tag: 3.0.0alpha1~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a078fdba0bb5f933b707285e29c28d6cebc7989c;p=postgis [run_test.pl] Properly upgrade raster from unpackaged git-svn-id: http://svn.osgeo.org/postgis/trunk@16926 b70326c6-7e19-0410-871a-916f4a2858ee --- 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";