From: gmc Date: Fri, 16 Jul 2010 20:38:38 +0000 (+0000) Subject: add seed for COPY_NEEDED_FOR_HOLD.override permission X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5f481aa09539260fd3b4ec0f8a9a5458b6731c78;p=evergreen%2Fbjwebb.git add seed for COPY_NEEDED_FOR_HOLD.override permission Being careful during the upgrade since a fair number of EG database in the wild had this one added manually. Signed-off-by: Galen Charlton git-svn-id: svn://svn.open-ils.org/ILS/trunk@16968 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 69664c832..7c5d59286 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log ( 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, diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 615952452..066058b72 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1371,6 +1371,7 @@ INSERT INTO permission.perm_list VALUES (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); diff --git a/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql b/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql new file mode 100644 index 000000000..5c9d3e8d1 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql @@ -0,0 +1,19 @@ +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;