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
{
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";