From: Regina Obe Date: Wed, 3 Oct 2012 14:33:33 +0000 (+0000) Subject: #2027: Add unionarg X-Git-Tag: 2.1.0beta2~592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a03e7d41769873f36bbd9d686f55dc07f4e070f2;p=postgis #2027: Add unionarg git-svn-id: http://svn.osgeo.org/postgis/trunk@10366 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c index a358ebea0..9c006615a 100644 --- a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c +++ b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in.c @@ -107,6 +107,15 @@ BEGIN aligned boolean ); END IF; + + -- create unionarg type if it does not exist + IF NOT EXISTS(SELECT typname + FROM pg_type + WHERE typname = 'unionarg') THEN + CREATE TYPE unionarg AS + (nband integer, + uniontype text); + END IF; END$$; -- make geometry cast ASSIGNMENT