Do not throw postgres errors when views/types/functions to be dropped do not exist (yet). Fixes #43

This commit is contained in:
Florian Schlichting committed 2015-10-02 22:09:34 +02:00
1 parent a64b43b006
commit 0cdcce0a6c
4 files changed
+14 -12

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@
*/
-- Create a composite type for the parts of the RRULE.
DROP TYPE rrule_parts CASCADE;
DROP TYPE IF EXISTS rrule_parts CASCADE;
CREATE TYPE rrule_parts AS (
base TIMESTAMP WITH TIME ZONE,
until TIMESTAMP WITH TIME ZONE,
@@ -680,7 +680,7 @@ $$ LANGUAGE plpgsql IMMUTABLE;
-- Create a composite type for the parts of the RRULE.
DROP TYPE rrule_instance CASCADE;
DROP TYPE IF EXISTS rrule_instance CASCADE;
CREATE TYPE rrule_instance AS (
dtstart TIMESTAMP WITH TIME ZONE,
rrule TEXT,