Wrap upgrade script for permanent bookbag lists
authorDan Scott <dscott@laurentian.ca>
Sun, 22 Jul 2012 20:01:38 +0000 (16:01 -0400)
committerDan Scott <dscott@laurentian.ca>
Sun, 22 Jul 2012 20:01:38 +0000 (16:01 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql [deleted file]

diff --git a/Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql b/Open-ILS/src/sql/Pg/upgrade/0718.data.add-to-permanent-bookbag.sql
new file mode 100644 (file)
index 0000000..4765443
--- /dev/null
@@ -0,0 +1,69 @@
+-- Evergreen DB patch 0718.data.add-to-permanent-bookbag.sql
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0718', :eg_version);
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'opac.patron.temporary_list_warn',
+        'opac',
+        oils_i18n_gettext(
+            'opac.patron.temporary_list_warn',
+            'Warn patrons when adding to a temporary book list',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'opac.patron.temporary_list_warn',
+            'Present a warning dialog to the patron when a patron adds a book to a temporary book bag.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT INTO config.usr_setting_type
+    (name,grp,opac_visible,label,description,datatype)
+VALUES (
+    'opac.temporary_list_no_warn',
+    'opac',
+    TRUE,
+    oils_i18n_gettext(
+        'opac.temporary_list_no_warn',
+        'Opt out of warning when adding a book to a temporary book list',
+        'cust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'opac.temporary_list_no_warn',
+        'Opt out of warning when adding a book to a temporary book list',
+        'cust',
+        'description'
+    ),
+    'bool'
+);
+
+INSERT INTO config.usr_setting_type
+    (name,grp,opac_visible,label,description,datatype)
+VALUES (
+    'opac.default_list',
+    'opac',
+    FALSE,
+    oils_i18n_gettext(
+        'opac.default_list',
+        'Default list to use when adding to a bookbag',
+        'cust',
+        'label'
+    ),
+    oils_i18n_gettext(
+        'opac.default_list',
+        'Default list to use when adding to a bookbag',
+        'cust',
+        'description'
+    ),
+    'integer'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add-to-permanent-bookbag.sql
deleted file mode 100644 (file)
index 5c16367..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-BEGIN;
-
--- Check for the upgrade deps block
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES (
-        'opac.patron.temporary_list_warn',
-        'opac',
-        oils_i18n_gettext(
-            'opac.patron.temporary_list_warn',
-            'Warn patrons when adding to a temporary book list',
-            'coust',
-            'label'
-        ),
-        oils_i18n_gettext(
-            'opac.patron.temporary_list_warn',
-            'Present a warning dialog to the patron when a patron adds a book to a temporary book bag.',
-            'coust',
-            'description'
-        ),
-        'bool'
-    );
-
-INSERT INTO config.usr_setting_type
-    (name,grp,opac_visible,label,description,datatype)
-VALUES (
-    'opac.temporary_list_no_warn',
-    'opac',
-    TRUE,
-    oils_i18n_gettext(
-        'opac.temporary_list_no_warn',
-        'Opt out of warning when adding a book to a temporary book list',
-        'cust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'opac.temporary_list_no_warn',
-        'Opt out of warning when adding a book to a temporary book list',
-        'cust',
-        'description'
-    ),
-    'bool'
-);
-
-INSERT INTO config.usr_setting_type
-    (name,grp,opac_visible,label,description,datatype)
-VALUES (
-    'opac.default_list',
-    'opac',
-    FALSE,
-    oils_i18n_gettext(
-        'opac.default_list',
-        'Default list to use when adding to a bookbag',
-        'cust',
-        'label'
-    ),
-    oils_i18n_gettext(
-        'opac.default_list',
-        'Default list to use when adding to a bookbag',
-        'cust',
-        'description'
-    ),
-    'integer'
-);
-
-COMMIT;