LP#1709698 - stamping upgrade script
authorChris Sharp <csharp@georgialibraries.org>
Fri, 8 Mar 2019 18:34:53 +0000 (13:34 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Mar 2019 18:34:53 +0000 (13:34 -0500)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1156.schema.reporter.template.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql [deleted file]

index 5d4b323..cc481e9 100644 (file)
@@ -92,7 +92,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 ('1155', :eg_version); -- berick/rogan
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1156', :eg_version); -- rogan/jvwoolf/csharp
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1156.schema.reporter.template.sql b/Open-ILS/src/sql/Pg/upgrade/1156.schema.reporter.template.sql
new file mode 100644 (file)
index 0000000..7099f60
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1155', :eg_version);
+
+ALTER TABLE reporter.template ALTER COLUMN description SET DEFAULT '';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql
deleted file mode 100644 (file)
index 819b562..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE reporter.template ALTER COLUMN description SET DEFAULT '';
-