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 ('1120', :eg_version); -- bshum/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1121', :eg_version); -- khuckins/berick/kmlussier
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+SELECT evergreen.upgrade_deps_block_check('1121', :eg_version);
+
+CREATE TABLE permission.grp_tree_display_entry (
+ id SERIAL PRIMARY KEY,
+ position INTEGER NOT NULL,
+ org INTEGER NOT NULL REFERENCES actor.org_unit (id)
+ DEFERRABLE INITIALLY DEFERRED,
+ grp INTEGER NOT NULL REFERENCES permission.grp_tree (id)
+ DEFERRABLE INITIALLY DEFERRED,
+ CONSTRAINT pgtde_once_per_org UNIQUE (org, grp)
+);
+
+ALTER TABLE permission.grp_tree_display_entry
+ ADD COLUMN parent integer REFERENCES permission.grp_tree_display_entry (id)
+ DEFERRABLE INITIALLY DEFERRED;
+
+INSERT INTO permission.perm_list (id, code, description)
+VALUES (609, 'MANAGE_CUSTOM_PERM_GRP_TREE', oils_i18n_gettext( 609,
+ 'Allows a user to manage custom permission group lists.', 'ppl', 'description' ));
+
+COMMIT;
+++ /dev/null
-BEGIN;
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-CREATE TABLE permission.grp_tree_display_entry (
- id SERIAL PRIMARY KEY,
- position INTEGER NOT NULL,
- org INTEGER NOT NULL REFERENCES actor.org_unit (id)
- DEFERRABLE INITIALLY DEFERRED,
- grp INTEGER NOT NULL REFERENCES permission.grp_tree (id)
- DEFERRABLE INITIALLY DEFERRED,
- CONSTRAINT pgtde_once_per_org UNIQUE (org, grp)
-);
-
-ALTER TABLE permission.grp_tree_display_entry
- ADD COLUMN parent integer REFERENCES permission.grp_tree_display_entry (id)
- DEFERRABLE INITIALLY DEFERRED;
-
-INSERT INTO permission.perm_list (id, code, description)
-VALUES (609, 'MANAGE_CUSTOM_PERM_GRP_TREE', oils_i18n_gettext( 609,
- 'Allows a user to manage custom permission group lists.', 'ppl', 'description' ));
-
-COMMIT;
\ No newline at end of file