Backport r17848 from trunk, sort of
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Sep 2010 20:56:27 +0000 (20:56 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Sep 2010 20:56:27 +0000 (20:56 +0000)
In rel_2_0, one of these permissions was already there, and the IDs are
different, but this should be functionally equivalent.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@17849 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql [new file with mode: 0644]

index 0bc26dc..023556d 100644 (file)
@@ -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 ('0406'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0407'); -- senator
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index a248e2a..405feb7 100644 (file)
@@ -1947,7 +1947,13 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 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);
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql b/Open-ILS/src/sql/Pg/upgrade/0407.data.serial-perm.sql
new file mode 100644 (file)
index 0000000..59a839d
--- /dev/null
@@ -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;
+