[open-ils-commits] r16968 - in trunk/Open-ILS/src/sql/Pg: . upgrade (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 16 16:38:43 EDT 2010
Author: gmc
Date: 2010-07-16 16:38:38 -0400 (Fri, 16 Jul 2010)
New Revision: 16968
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
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 <gmc at esilibrary.com>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-16 19:55:37 UTC (rev 16967)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-16 20:38:38 UTC (rev 16968)
@@ -68,7 +68,7 @@
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,
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-07-16 19:55:37 UTC (rev 16967)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-07-16 20:38:38 UTC (rev 16968)
@@ -1371,6 +1371,7 @@
(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);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0341.data.permission.copy_needed_for_hold_override.sql 2010-07-16 20:38:38 UTC (rev 16968)
@@ -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;
More information about the open-ils-commits
mailing list