Add "IF EXISTS" after DROP FUNCTION, 'cause my database was missing at
least one of those forms.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
END;
$func$ LANGUAGE PLPGSQL;
-DROP FUNCTION vandelay.marc21_extract_fixed_field_list( text, text );
-DROP FUNCTION vandelay.marc21_extract_fixed_field( text, text );
-DROP FUNCTION vandelay.marc21_extract_all_fixed_fields( text, text );
+DROP FUNCTION IF EXISTS vandelay.marc21_extract_fixed_field_list( text, text );
+DROP FUNCTION IF EXISTS vandelay.marc21_extract_fixed_field( text, text );
+DROP FUNCTION IF EXISTS vandelay.marc21_extract_all_fixed_fields( text, text );
COMMIT;