[open-ils-commits] r17849 - in branches/rel_2_0/Open-ILS/src/sql/Pg: . upgrade (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 20 16:56:33 EDT 2010


Author: senator
Date: 2010-09-20 16:56:27 -0400 (Mon, 20 Sep 2010)
New Revision: 17849

Added:
   branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql
Modified:
   branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql
   branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Backport r17848 from trunk, sort of

In rel_2_0, one of these permissions was already there, and the IDs are
different, but this should be functionally equivalent.


Modified: branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-09-20 20:40:23 UTC (rev 17848)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-09-20 20:56:27 UTC (rev 17849)
@@ -68,7 +68,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0406'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0407'); -- senator
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Modified: branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-09-20 20:40:23 UTC (rev 17848)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-09-20 20:56:27 UTC (rev 17849)
@@ -1947,7 +1947,13 @@
  ( 479, 'VIEW_SERIAL_SUBSCRIPTION', oils_i18n_gettext( 479, 
     'VIEW_SERIAL_SUBSCRIPTION', 'ppl', 'description' )),
  ( 480, 'VIEW_STANDING_PENALTY', oils_i18n_gettext( 480, 
-    'VIEW_STANDING_PENALTY', 'ppl', 'description' ));
+    'VIEW_STANDING_PENALTY', 'ppl', 'description' )),
+ ( 481, 'ADMIN_SERIAL_CAPTION_PATTERN', oils_i18n_gettext( 481, 
+    'ADMIN_SERIAL_CAPTION_PATTERN', 'ppl', 'description' )),
+ ( 482, 'ADMIN_SERIAL_DISTRIBUTION', oils_i18n_gettext( 482, 
+    'ADMIN_SERIAL_DISTRIBUTION', 'ppl', 'description' )),
+ ( 483, 'ADMIN_SERIAL_STREAM', oils_i18n_gettext( 483, 
+    'ADMIN_SERIAL_STREAM', 'ppl', 'description' ));
 
 SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
 

Added: branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql	                        (rev 0)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql	2010-09-20 20:56:27 UTC (rev 17849)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0407'); -- senator
+
+INSERT INTO permission.perm_list (id, code, description) VALUES
+    (481, 'ADMIN_SERIAL_CAPTION_PATTERN', oils_i18n_gettext(481, 'Create/update/delete serial caption and pattern objects', 'ppl', 'description')),
+    (482, 'ADMIN_SERIAL_DISTRIBUTION', oils_i18n_gettext(482, 'Create/update/delete serial distribution objects', 'ppl', 'description')),
+    (483, 'ADMIN_SERIAL_STREAM', oils_i18n_gettext(483, 'Create/update/delete serial stream objects', 'ppl', 'description'));
+
+COMMIT;
+



More information about the open-ils-commits mailing list