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 ('0734', :eg_version); -- tsbere/denials
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0735', :eg_version); -- berick/kmlussier/denials
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+-- Evergreen DB patch 0735.data.search_filter_group_perms.sql
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0735', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description )
+ VALUES (
+ 537,
+ 'ADMIN_SEARCH_FILTER_GROUP',
+ oils_i18n_gettext(
+ 537,
+ 'Allows staff to manage search filter groups and entries',
+ 'ppl',
+ 'description'
+ )
+ ),
+ (
+ 538,
+ 'VIEW_SEARCH_FILTER_GROUP',
+ oils_i18n_gettext(
+ 538,
+ 'Allows staff to view search filter groups and entries',
+ 'ppl',
+ 'description'
+ )
+
+ );
+
+COMMIT;
+++ /dev/null
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
--- TODO: verify IDs before merging
-INSERT INTO permission.perm_list ( id, code, description )
- VALUES (
- 537,
- 'ADMIN_SEARCH_FILTER_GROUP',
- oils_i18n_gettext(
- 537,
- 'Allows staff to manage search filter groups and entries',
- 'ppl',
- 'description'
- )
- ),
- (
- 538,
- 'VIEW_SEARCH_FILTER_GROUP',
- oils_i18n_gettext(
- 538,
- 'Allows staff to view search filter groups and entries',
- 'ppl',
- 'description'
- )
-
- );
-
-COMMIT;