install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0340'); -- dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0341'); -- gmc
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
(389, 'ACQ_XFER_MANUAL_DFUND_AMOUNT', oils_i18n_gettext(389, 'Allow a user to transfer different amounts of money out of one fund and into another', 'ppl', 'description')),
(390, 'OVERRIDE_HOLD_HAS_LOCAL_COPY', oils_i18n_gettext( 390, 'Allow a user to override the circ.holds.hold_has_copy_at.block setting', 'ppl', 'description' ))
,(391, 'UPDATE_PICKUP_LIB_FROM_TRANSIT', oils_i18n_gettext( 391, 'Allow a user to change the pickup and transit destination for a captured hold item already in transit', 'ppl', 'description' ))
+ ,(392, 'COPY_NEEDED_FOR_HOLD.override', oils_i18n_gettext( 392, 'Allow a user to force renewal of an item that could fulfill a hold request', 'ppl', 'description' ))
;
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0341'); -- gmc
+
+INSERT INTO permission.perm_list (id, code, description) SELECT DISTINCT
+ 392,
+ 'COPY_NEEDED_FOR_HOLD.override',
+ oils_i18n_gettext(
+ 392,
+ 'Allow a user to force renewal of an item that could fulfill a hold request',
+ 'ppl',
+ 'description'
+ )
+FROM permission.perm_list
+WHERE NOT EXISTS (SELECT 1 FROM permission.perm_list WHERE code = 'COPY_NEEDED_FOR_HOLD.override');
+-- near as I can tell, COPY_NEEDED_FOR_HOLD.override never existed as seed data but was manually
+-- added by a fair number of Evergreen users in the past
+
+COMMIT;