LP#1234220 Stamping DB upgrade copy/ratio messages
authorBill Erickson <berickxx@gmail.com>
Fri, 13 Mar 2015 21:23:56 +0000 (17:23 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 13 Mar 2015 21:23:56 +0000 (17:23 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0915.data.hold_copy_ratio_override.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_copy_ratio_override.sql [deleted file]

index 5e1a892..2d5f0f5 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 ('0914', :eg_version); -- dpearl/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0915', :eg_version); -- berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0915.data.hold_copy_ratio_override.sql b/Open-ILS/src/sql/Pg/upgrade/0915.data.hold_copy_ratio_override.sql
new file mode 100644 (file)
index 0000000..333725a
--- /dev/null
@@ -0,0 +1,29 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0915', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description) 
+VALUES (  
+    560, 
+    'TOTAL_HOLD_COPY_RATIO_EXCEEDED.override',
+    oils_i18n_gettext(
+        560,
+        'Override the TOTAL_HOLD_COPY_RATIO_EXCEEDED event',
+        'ppl', 
+        'description'
+    )
+);
+
+INSERT INTO permission.perm_list (id, code, description) 
+VALUES (  
+    561, 
+    'AVAIL_HOLD_COPY_RATIO_EXCEEDED.override',
+    oils_i18n_gettext(
+        561,
+        'Override the AVAIL_HOLD_COPY_RATIO_EXCEEDED event',
+        'ppl', 
+        'description'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_copy_ratio_override.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.hold_copy_ratio_override.sql
deleted file mode 100644 (file)
index fceaab8..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list (id, code, description) 
-VALUES (  
-    560, 
-    'TOTAL_HOLD_COPY_RATIO_EXCEEDED.override',
-    oils_i18n_gettext(
-        560,
-        'Override the TOTAL_HOLD_COPY_RATIO_EXCEEDED event',
-        'ppl', 
-        'description'
-    )
-);
-
-INSERT INTO permission.perm_list (id, code, description) 
-VALUES (  
-    561, 
-    'AVAIL_HOLD_COPY_RATIO_EXCEEDED.override',
-    oils_i18n_gettext(
-        561,
-        'Override the AVAIL_HOLD_COPY_RATIO_EXCEEDED event',
-        'ppl', 
-        'description'
-    )
-);
-
-COMMIT;