Stamping upgrade script for LP#847973
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 18 Oct 2011 14:07:08 +0000 (10:07 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 18 Oct 2011 14:07:08 +0000 (10:07 -0400)
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0641.schema.org_unit_setting_json_check.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_setting_json_check.sql [deleted file]

index 946150d..acccf52 100644 (file)
@@ -86,7 +86,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 ('0640', :eg_version); -- miker/lebbeous/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0641', :eg_version); -- tsbere/phasefx
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0641.schema.org_unit_setting_json_check.sql b/Open-ILS/src/sql/Pg/upgrade/0641.schema.org_unit_setting_json_check.sql
new file mode 100644 (file)
index 0000000..a23e154
--- /dev/null
@@ -0,0 +1,11 @@
+-- Evergreen DB patch 0641.schema.org_unit_setting_json_check.sql
+--
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0641', :eg_version);
+
+ALTER TABLE actor.org_unit_setting ADD CONSTRAINT aous_must_be_json CHECK ( evergreen.is_json(value) );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_setting_json_check.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_setting_json_check.sql
deleted file mode 100644 (file)
index 0e96020..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
--- Evergreen DB patch XXXX.schema.org_unit_setting_json_check.sql
---
---
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE actor.org_unit_setting ADD CONSTRAINT aous_must_be_json CHECK ( evergreen.is_json(value) );
-
-COMMIT;