Wrap upgrade script for search filter group admin UI
authorDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 21:33:48 +0000 (17:33 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 21:33:48 +0000 (17:33 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0735.data.search_filter_group_perms.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql [deleted file]

index b836f97..4c57bb6 100644 (file)
@@ -87,7 +87,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0734', :eg_version); -- tsbere/denials
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0735', :eg_version); -- berick/kmlussier/denials
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0735.data.search_filter_group_perms.sql b/Open-ILS/src/sql/Pg/upgrade/0735.data.search_filter_group_perms.sql
new file mode 100644 (file)
index 0000000..cdcf50a
--- /dev/null
@@ -0,0 +1,31 @@
+-- Evergreen DB patch 0735.data.search_filter_group_perms.sql
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0735', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) 
+    VALUES ( 
+        537, 
+        'ADMIN_SEARCH_FILTER_GROUP',
+        oils_i18n_gettext( 
+            537,
+            'Allows staff to manage search filter groups and entries',
+            'ppl', 
+            'description' 
+        )
+    ),
+    (
+        538, 
+        'VIEW_SEARCH_FILTER_GROUP',
+        oils_i18n_gettext( 
+            538,
+            'Allows staff to view search filter groups and entries',
+            'ppl', 
+            'description' 
+        )
+
+    );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql
deleted file mode 100644 (file)
index a0310e9..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
--- TODO: verify IDs before merging
-INSERT INTO permission.perm_list ( id, code, description ) 
-    VALUES ( 
-        537, 
-        'ADMIN_SEARCH_FILTER_GROUP',
-        oils_i18n_gettext( 
-            537,
-            'Allows staff to manage search filter groups and entries',
-            'ppl', 
-            'description' 
-        )
-    ),
-    (
-        538, 
-        'VIEW_SEARCH_FILTER_GROUP',
-        oils_i18n_gettext( 
-            538,
-            'Allows staff to view search filter groups and entries',
-            'ppl', 
-            'description' 
-        )
-
-    );
-
-COMMIT;