]> granicus.if.org Git - postgis/commitdiff
Only drop old functions if they exists
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 26 Mar 2019 14:00:13 +0000 (14:00 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 26 Mar 2019 14:00:13 +0000 (14:00 +0000)
References #4345

git-svn-id: http://svn.osgeo.org/postgis/trunk@17359 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis_drop_before.sql

index 0c7924eb471747c38476716c6b85bbc4233710e3..290d982fe397f230940a5d7a6147f885b007215b 100644 (file)
@@ -68,11 +68,11 @@ DROP FUNCTION IF EXISTS ST_AsTWKB(geometry,int4,int8);
 DROP FUNCTION IF EXISTS ST_AsTWKB(geometry,int4,int8,boolean);
 
 -- Going from un-named to named arguments
-DROP FUNCTION _st_linecrossingdirection(geometry,geometry);
-DROP FUNCTION _st_orderingequals(geometry,geometry);
-DROP FUNCTION st_orderingequals(geometry,geometry);
-DROP FUNCTION st_askml(geometry, integer);
-DROP FUNCTION st_buffer(geometry, double precision);
+DROP FUNCTION IF EXISTS _st_linecrossingdirection(geometry,geometry);
+DROP FUNCTION IF EXISTS _st_orderingequals(geometry,geometry);
+DROP FUNCTION IF EXISTS st_orderingequals(geometry,geometry);
+DROP FUNCTION IF EXISTS st_askml(geometry, integer);
+DROP FUNCTION IF EXISTS st_buffer(geometry, double precision);
 
 -- Old signatures for protobuf related functions improved in 2.4.0 RC/final
 DROP AGGREGATE IF EXISTS ST_AsMVT(text, int4, text, anyelement);