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 ('0585', :eg_version); -- tsbere/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0586', :eg_version); -- senator/berick
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0586', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description) VALUES (
+ 511,
+ 'PERSISTENT_LOGIN',
+ oils_i18n_gettext(
+ 511,
+ 'Allows a user to authenticate and get a long-lived session (length configured in opensrf.xml)',
+ 'ppl',
+ 'description'
+ )
+);
+
+INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
+ SELECT
+ pgt.id, perm.id, aout.depth, FALSE
+ FROM
+ permission.grp_tree pgt,
+ permission.perm_list perm,
+ actor.org_unit_type aout
+ WHERE
+ pgt.name = 'Users' AND
+ aout.name = 'Consortium' AND
+ perm.code = 'PERSISTENT_LOGIN';
+
+\qecho
+\qecho If this transaction succeeded, your users (staff and patrons) now have
+\qecho the PERSISTENT_LOGIN permission by default.
+\qecho
+
+COMMIT;
+
+++ /dev/null
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list (id, code, description) VALUES (
- 511,
- 'PERSISTENT_LOGIN',
- oils_i18n_gettext(
- 511,
- 'Allows a user to authenticate and get a long-lived session (length configured in opensrf.xml)',
- 'ppl',
- 'description'
- )
-);
-
-INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
- SELECT
- pgt.id, perm.id, aout.depth, FALSE
- FROM
- permission.grp_tree pgt,
- permission.perm_list perm,
- actor.org_unit_type aout
- WHERE
- pgt.name = 'Users' AND
- aout.name = 'Consortium' AND
- perm.code = 'PERSISTENT_LOGIN';
-
-\qecho
-\qecho If this transaction succeeded, your users (staff and patrons) now have
-\qecho the PERSISTENT_LOGIN permission by default.
-\qecho
-
-COMMIT;
-