Under certain circumstances, a sufficiently old Evergreen
database might have tsearch2 as a contrib, not an extension.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
ALTER TABLE metabib.title_field_entry ALTER COLUMN index_vector TYPE pg_catalog.tsvector;
-- Halfway there! Goodbye tsearch2 extension!
-DROP EXTENSION tsearch2;
+DROP EXTENSION IF EXISTS tsearch2;
-- Next up, re-creating all of the stuff we just dropped.
ALTER TABLE metabib.title_field_entry ALTER COLUMN index_vector TYPE pg_catalog.tsvector;
-- Halfway there! Goodbye tsearch2 extension!
-DROP EXTENSION tsearch2;
+DROP EXTENSION IF EXISTS tsearch2;
-- Next up, re-creating all of the stuff we just dropped.