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 ('0704', :eg_version); -- dbs
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0705', :eg_version); -- dbs
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
( 526, 'UPDATE_PATRON_STAT_CAT_ENTRY_DEFAULT', oils_i18n_gettext( 526,
'User may reset a default entry in a patron statistical category', 'ppl', 'description' )),
( 527, 'DELETE_PATRON_STAT_CAT_ENTRY_DEFAULT', oils_i18n_gettext( 527,
- 'User may unset a default entry in a patron statistical category', 'ppl', 'description' ));
+ 'User may unset a default entry in a patron statistical category', 'ppl', 'description' )),
+ ( 528, 'ADMIN_ORG_UNIT_CUSTOM_TREE', oils_i18n_gettext( 528,
+ 'User may update custom org unit trees', 'ppl', 'description' ));
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
--- /dev/null
+-- Evergreen DB patch 0705.data.custom-org-tree-perms.sql
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0705', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description)
+ VALUES (
+ 528,
+ 'ADMIN_ORG_UNIT_CUSTOM_TREE',
+ oils_i18n_gettext(
+ 528,
+ 'User may update custom org unit trees',
+ 'ppl',
+ 'description'
+ )
+ );
+
+COMMIT;