Stamping upgrade for LOC z39.50 target seed data
authorBen Shum <bshum@biblio.org>
Thu, 7 Mar 2013 06:48:46 +0000 (01:48 -0500)
committerBen Shum <bshum@biblio.org>
Thu, 7 Mar 2013 06:48:46 +0000 (01:48 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0764.data.loc_z39_settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.loc_z39_settings.sql [deleted file]

index fd33d42..d773eb1 100644 (file)
@@ -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 (file)
index 0000000..b6ee711
--- /dev/null
@@ -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 (file)
index 20a39b7..0000000
+++ /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;
-