LP#1507807: Stamping upgrade script for in-house copy alerts
authorKathy Lussier <klussier@masslnc.org>
Tue, 14 Feb 2017 05:09:06 +0000 (00:09 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 14 Feb 2017 05:10:51 +0000 (00:10 -0500)
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1011.data.in-house-use_copy_alert.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.in-house-use_copy_alert.sql [deleted file]

index ed66ee3..10eee0c 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 ('1010', :eg_version); -- csharp/jeff/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1011', :eg_version); -- Dyrcona/kmlussier
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1011.data.in-house-use_copy_alert.sql b/Open-ILS/src/sql/Pg/upgrade/1011.data.in-house-use_copy_alert.sql
new file mode 100644 (file)
index 0000000..667b12e
--- /dev/null
@@ -0,0 +1,27 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1011', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES
+        ('circ.in_house_use.copy_alert',
+         'circ',
+         oils_i18n_gettext('circ.in_house_use.copy_alert',
+             'Display copy alert for in-house-use',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.in_house_use.copy_alert',
+             'Display copy alert for in-house-use',
+             'coust', 'description'),
+         'bool'),
+        ('circ.in_house_use.checkin_alert',
+         'circ',
+         oils_i18n_gettext('circ.in_house_use.checkin_alert',
+             'Display copy location checkin alert for in-house-use',
+             'coust', 'label'),
+         oils_i18n_gettext('circ.in_house_use.checkin_alert',
+             'Display copy location checkin alert for in-house-use',
+             'coust', 'description'),
+         'bool');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.in-house-use_copy_alert.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.in-house-use_copy_alert.sql
deleted file mode 100644 (file)
index ea5364c..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES
-        ('circ.in_house_use.copy_alert',
-         'circ',
-         oils_i18n_gettext('circ.in_house_use.copy_alert',
-             'Display copy alert for in-house-use',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.in_house_use.copy_alert',
-             'Display copy alert for in-house-use',
-             'coust', 'description'),
-         'bool'),
-        ('circ.in_house_use.checkin_alert',
-         'circ',
-         oils_i18n_gettext('circ.in_house_use.checkin_alert',
-             'Display copy location checkin alert for in-house-use',
-             'coust', 'label'),
-         oils_i18n_gettext('circ.in_house_use.checkin_alert',
-             'Display copy location checkin alert for in-house-use',
-             'coust', 'description'),
-         'bool');
-
-COMMIT;