From: Galen Charlton Date: Tue, 21 Sep 2021 14:29:30 +0000 (-0400) Subject: LP#1737019: stamp schema update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=286a11a4aaa696425065f7389681685f588e51ba;p=evergreen%2Fpines.git LP#1737019: 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 6c0be7059d..55bc324e63 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 ('1289', :eg_version); -- rhamby / rfrasur / gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1290', :eg_version); -- tlittle / lstratton / gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql b/Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql new file mode 100644 index 0000000000..394addf89b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql @@ -0,0 +1,14 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1290', :eg_version); + +-- Add an active flag column + +ALTER TABLE acq.funding_source ADD COLUMN active BOOL; + +UPDATE acq.funding_source SET active = 't'; + +ALTER TABLE acq.funding_source ALTER COLUMN active SET DEFAULT TRUE; +ALTER TABLE acq.funding_source ALTER COLUMN active SET NOT NULL; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql deleted file mode 100644 index fce1555b86..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql +++ /dev/null @@ -1,14 +0,0 @@ -BEGIN; - ---SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); - --- Add an active flag column - -ALTER TABLE acq.funding_source ADD COLUMN active BOOL; - -UPDATE acq.funding_source SET active = 't'; - -ALTER TABLE acq.funding_source ALTER COLUMN active SET DEFAULT TRUE; -ALTER TABLE acq.funding_source ALTER COLUMN active SET NOT NULL; - -COMMIT;