From 5bc725c8abb2261d88a73237bc219c99456df7ce Mon Sep 17 00:00:00 2001 From: Carla Date: Thu, 3 Mar 2016 16:58:31 +0100 Subject: [PATCH] Add drop function if exists --- scripts-available/CDB_CartodbfyTable.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index d6fba32..43eb920 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -470,6 +470,7 @@ $$ LANGUAGE 'plpgsql'; -- If the table has both a usable key and usable geometry -- we can no-op on the table copy and just ensure that the -- indexes and triggers are in place +DROP FUNCTION IF EXISTS _CDB_Has_Usable_Primary_ID(reloid REGCLASS); CREATE OR REPLACE FUNCTION _CDB_Has_Usable_Primary_ID(reloid REGCLASS) RETURNS BOOLEAN AS $$