BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0702', :eg_version); -- berick/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0703', :eg_version); -- tsbere
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+-- Evergreen DB patch 0703.tpac_value_maps.sql
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0703', :eg_version);
+
+ALTER TABLE config.coded_value_map
+ ADD COLUMN opac_visible BOOL NOT NULL DEFAULT TRUE,
+ ADD COLUMN search_label TEXT,
+ ADD COLUMN is_simple BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
+++ /dev/null
-ALTER TABLE config.coded_value_map
- ADD COLUMN opac_visible BOOL NOT NULL DEFAULT TRUE,
- ADD COLUMN search_label TEXT,
- ADD COLUMN is_simple BOOL NOT NULL DEFAULT FALSE;