Upgrade script for LP#1105225: LOC z39.50 seed data
authorBill Erickson <berick@esilibrary.com>
Wed, 6 Mar 2013 18:54:35 +0000 (13:54 -0500)
committerBen Shum <bshum@biblio.org>
Thu, 7 Mar 2013 06:45:34 +0000 (01:45 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.data.loc_z39_settings.sql [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..20a39b7
--- /dev/null
@@ -0,0 +1,18 @@
+
+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;
+