Stamping upgrade for 'my list' items per page
authorDan Wells <dbw2@calvin.edu>
Fri, 13 Sep 2013 18:34:11 +0000 (14:34 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 13 Sep 2013 18:34:11 +0000 (14:34 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0829.data.my_list_items_per_page_setting.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.add_setting_for_selecting_items_per_page_of_a_my_list.sql [deleted file]

index 64d9042..2277d81 100644 (file)
@@ -91,7 +91,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 ('0828', :eg_version); -- berick/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0829', :eg_version); -- ktomita/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0829.data.my_list_items_per_page_setting.sql b/Open-ILS/src/sql/Pg/upgrade/0829.data.my_list_items_per_page_setting.sql
new file mode 100644 (file)
index 0000000..3f4e073
--- /dev/null
@@ -0,0 +1,28 @@
+--
+-- Adds a setting for selecting the number of items per page of a my list.
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0829', :eg_version);
+
+INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatype)
+    VALUES (
+        'opac.list_items_per_page',
+        TRUE,
+        oils_i18n_gettext(
+            'opac.list_items_per_page',
+            'List Items per Page',
+            'cust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'opac.list_items_per_page',
+            'A number designating the amount of list items displayed per page of a selected list.',
+            'cust',
+            'description'
+        ),
+        'string'
+    );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.add_setting_for_selecting_items_per_page_of_a_my_list.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.add_setting_for_selecting_items_per_page_of_a_my_list.sql
deleted file mode 100644 (file)
index 9aac3ee..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
--- Evergreen DB patch XXXX.add_setting_for_selecting_items_per_page_of_a_my_list.sql
---
--- Adds a setting for selecting the number of items per page of a my list.
---
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.usr_setting_type (name,opac_visible,label,description,datatype)
-    VALUES (
-        'opac.list_items_per_page',
-        TRUE,
-        oils_i18n_gettext(
-            'opac.list_items_per_page',
-            'List Items per Page',
-            'cust',
-            'label'
-        ),
-        oils_i18n_gettext(
-            'opac.list_items_per_page',
-            'A number designating the amount of list items displayed per page of a selected list.',
-            'cust',
-            'description'
-        ),
-        'string'
-    );
-