From: Ben Shum Date: Thu, 7 Mar 2013 06:48:46 +0000 (-0500) Subject: Stamping upgrade for LOC z39.50 target seed data X-Git-Tag: sprint4-merge-nov22~3356 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f395b228f4e3f920fc26fde1b9483d3f9688fb05;p=working%2FEvergreen.git Stamping upgrade for LOC z39.50 target seed data Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index fd33d42d4f..d773eb16b0 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -90,7 +90,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 ('0763', :eg_version); -- jeff/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0764', :eg_version); -- gmcharlt/berick/bshum CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0764.data.loc_z39_settings.sql b/Open-ILS/src/sql/Pg/upgrade/0764.data.loc_z39_settings.sql new file mode 100644 index 0000000000..b6ee711d64 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0764.data.loc_z39_settings.sql @@ -0,0 +1,19 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0764', :eg_version); + +UPDATE config.z3950_source + SET host = 'lx2.loc.gov', port = 210, db = 'LCDB' + WHERE name = 'loc' + AND host = 'z3950.loc.gov' + AND port = 7090 + AND db = 'Voyager'; + +UPDATE config.z3950_attr + SET format = 6 + WHERE source = 'loc' + AND name = 'lccn' + AND format = 1; + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.loc_z39_settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.loc_z39_settings.sql deleted file mode 100644 index 20a39b7086..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.loc_z39_settings.sql +++ /dev/null @@ -1,18 +0,0 @@ - -BEGIN; - -UPDATE config.z3950_source - SET host = 'lx2.loc.gov', port = 210, db = 'LCDB' - WHERE name = 'loc' - AND host = 'z3950.loc.gov' - AND port = 7090 - AND db = 'Voyager'; - -UPDATE config.z3950_attr - SET format = 6 - WHERE source = 'loc' - AND name = 'lccn' - AND format = 1; - -COMMIT; -