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 ('0673', :eg_version); -- berick/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0674', :eg_version); -- phasefx/Dyrcona/senator
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
( 518, 'COPY_HOLDS_RECALL', oils_i18n_gettext( 518,
'Allow a user to place a cataloging recall on a specific copy', 'ppl', 'description' )),
( 519, 'ADMIN_SMS_CARRIER', oils_i18n_gettext( 519,
- 'Allows a user to add/create/delete SMS Carrier entries.', 'ppl', 'description' ));
+ 'Allows a user to add/create/delete SMS Carrier entries.', 'ppl', 'description' )),
+ ( 520, 'COPY_DELETE_WARNING.override', oils_i18n_gettext( 520,
+ 'Allow a user to override warnings about deleting copies in problematic situations.', 'ppl', 'description' ));
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0674', :eg_version);
+
+ALTER TABLE config.copy_status
+ ADD COLUMN restrict_copy_delete BOOL NOT NULL DEFAULT FALSE;
+
+UPDATE config.copy_status
+SET restrict_copy_delete = TRUE
+WHERE id IN (1,3,6,8);
+
+INSERT INTO permission.perm_list (id, code, description) VALUES (
+ 520,
+ 'COPY_DELETE_WARNING.override',
+ 'Allow a user to override warnings about deleting copies in problematic situations.'
+);
+
+COMMIT;
+++ /dev/null
-BEGIN;
-
-ALTER TABLE config.copy_status
- ADD COLUMN restrict_copy_delete BOOL NOT NULL DEFAULT FALSE;
-
-UPDATE config.copy_status
-SET restrict_copy_delete = TRUE
-WHERE id IN (1,3,6,8);
-
-COMMIT;