From: Thomas Berezansky Date: Tue, 18 Oct 2011 14:07:08 +0000 (-0400) Subject: Stamping upgrade script for LP#847973 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=30fa94a8d64250e336b4f2b56b2901414fcc6323;p=evergreen%2Fpines.git Stamping upgrade script for LP#847973 Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 946150d02b..acccf52f37 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..a23e154712 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0641.schema.org_unit_setting_json_check.sql @@ -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 index 0e96020bae..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_setting_json_check.sql +++ /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;