Stamped upgrade script for collections_exempt_perm
authorBill Erickson <berick@esilibrary.com>
Thu, 14 Jul 2011 19:48:41 +0000 (15:48 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 14 Jul 2011 19:48:41 +0000 (15:48 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/upgrade/0563.data.collections_exempt_perm.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.collections_exempt_perm.sql [deleted file]

diff --git a/Open-ILS/src/sql/Pg/upgrade/0563.data.collections_exempt_perm.sql b/Open-ILS/src/sql/Pg/upgrade/0563.data.collections_exempt_perm.sql
new file mode 100644 (file)
index 0000000..a63cead
--- /dev/null
@@ -0,0 +1,26 @@
+-- Evergreen DB patch XXXX.data.collections_exempt_perm.sql
+--
+-- Adds a new UPDATE_PATRON_COLLECTIONS_EXEMPT permission
+--
+BEGIN;
+
+
+-- check whether patch can be applied
+INSERT INTO config.upgrade_log (version) VALUES ('0563');
+
+INSERT INTO permission.perm_list ( id, code, description ) 
+    VALUES ( 510, 'UPDATE_PATRON_COLLECTIONS_EXEMPT', oils_i18n_gettext(510,
+    'Allows a user to indicate that a patron is exempt from collections processing', 'ppl', 'description'));
+
+--- stock Circulation Administrator group
+
+INSERT INTO permission.grp_perm_map ( grp, perm, depth, grantable )
+    SELECT
+        4,
+        id,
+        0,
+        't'
+    FROM permission.perm_list
+    WHERE code in ('UPDATE_PATRON_COLLECTIONS_EXEMPT');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.collections_exempt_perm.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.collections_exempt_perm.sql
deleted file mode 100644 (file)
index dc4c2fd..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
--- Evergreen DB patch XXXX.data.collections_exempt_perm.sql
---
--- Adds a new UPDATE_PATRON_COLLECTIONS_EXEMPT permission
---
-BEGIN;
-
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list ( id, code, description ) 
-    VALUES ( 510, 'UPDATE_PATRON_COLLECTIONS_EXEMPT', oils_i18n_gettext(510,
-    'Allows a user to indicate that a patron is exempt from collections processing', 'ppl', 'description'));
-
---- stock Circulation Administrator group
-
-INSERT INTO permission.grp_perm_map ( grp, perm, depth, grantable )
-    SELECT
-        4,
-        id,
-        0,
-        't'
-    FROM permission.perm_list
-    WHERE code in ('UPDATE_PATRON_COLLECTIONS_EXEMPT');
-
-COMMIT;