LP#1545115: consolidate schema update scripts into one
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 25 Apr 2017 13:55:00 +0000 (09:55 -0400)
committerJason Stephenson <jason@sigio.com>
Tue, 25 Apr 2017 17:30:14 +0000 (13:30 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.policy_matrix_description_field.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_circ_matrix.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_hold_matrix.sql [deleted file]

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
new file mode 100644 (file)
index 0000000..dda68a1
--- /dev/null
@@ -0,0 +1,11 @@
+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;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_circ_matrix.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_circ_matrix.sql
deleted file mode 100644 (file)
index a461c4b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-BEGIN;
-
-ALTER TABLE config.circ_matrix_matchpoint
-    ADD COLUMN description TEXT;
-
-COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_hold_matrix.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_description_hold_matrix.sql
deleted file mode 100644 (file)
index f65fc13..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-BEGIN;
-
-ALTER TABLE config.hold_matrix_matchpoint
-    ADD COLUMN description TEXT;
-
-COMMIT;