LP#1545115: Stamping upgrade script for description field in matrix tables
authorJason Stephenson <jason@sigio.com>
Tue, 25 Apr 2017 17:33:08 +0000 (13:33 -0400)
committerJason Stephenson <jason@sigio.com>
Tue, 25 Apr 2017 17:34:56 +0000 (13:34 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1034.schema.policy_matrix_description_field.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.policy_matrix_description_field.sql [deleted file]

index bfeeb14..d23ebf1 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 ('1033', :eg_version); -- gmcharlt/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1034', :eg_version); -- rhamby/gmcharlt/dyrcona
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1034.schema.policy_matrix_description_field.sql b/Open-ILS/src/sql/Pg/upgrade/1034.schema.policy_matrix_description_field.sql
new file mode 100644 (file)
index 0000000..afedb11
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1034', :eg_version);
+
+ALTER TABLE config.hold_matrix_matchpoint
+    ADD COLUMN description TEXT;
+
+ALTER TABLE config.circ_matrix_matchpoint
+    ADD COLUMN description TEXT;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.policy_matrix_description_field.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.policy_matrix_description_field.sql
deleted file mode 100644 (file)
index dda68a1..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE config.hold_matrix_matchpoint
-    ADD COLUMN description TEXT;
-
-ALTER TABLE config.circ_matrix_matchpoint
-    ADD COLUMN description TEXT;
-
-COMMIT;