From: Galen Charlton Date: Tue, 15 Sep 2020 16:10:02 +0000 (-0400) Subject: LP#1811710: stamp schema update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2c4f09a52b881576396b40e5f1e81cd31b0c2161;p=evergreen%2Ftadl.git LP#1811710: stamp schema update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 2978fe859b..351a9a4dc7 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('1232', :eg_version); -- khuckins/sandbergja/JBoyer/mmorgan/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1234', :eg_version); -- phasefx/gmcharlt/terranm/charp CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql new file mode 100644 index 0000000000..7a53e96f0b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql @@ -0,0 +1,16 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1233', :eg_version); + +INSERT into config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.hopeless.wide_holds', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.hopeless.wide_holds', + 'Grid Config: hopeless.wide_holds', + 'cwst', 'label' + ) +); + + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql b/Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql new file mode 100644 index 0000000000..b06e4a5e01 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql @@ -0,0 +1,8 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1234', :eg_version); + +ALTER TABLE config.copy_status ADD COLUMN hopeless_prone BOOL NOT NULL DEFAULT FALSE; -- 002.schema.config.sql +ALTER TABLE action.hold_request ADD COLUMN hopeless_date TIMESTAMP WITH TIME ZONE; -- 090.schema.action.sql + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql deleted file mode 100644 index 717001d121..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql +++ /dev/null @@ -1,16 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT into config.workstation_setting_type (name, grp, datatype, label) -VALUES ( - 'eg.grid.hopeless.wide_holds', 'gui', 'object', - oils_i18n_gettext( - 'eg.grid.hopeless.wide_holds', - 'Grid Config: hopeless.wide_holds', - 'cwst', 'label' - ) -); - - -COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql deleted file mode 100644 index 7205a71dd7..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql +++ /dev/null @@ -1,8 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('YYYY', :eg_version); - -ALTER TABLE config.copy_status ADD COLUMN hopeless_prone BOOL NOT NULL DEFAULT FALSE; -- 002.schema.config.sql -ALTER TABLE action.hold_request ADD COLUMN hopeless_date TIMESTAMP WITH TIME ZONE; -- 090.schema.action.sql - -COMMIT;