Stamping upgrade script for including parts in bib fingerprints
authorMike Rylander <mrylander@gmail.com>
Thu, 16 Feb 2017 15:01:33 +0000 (10:01 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 16 Feb 2017 15:01:33 +0000 (10:01 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1016.data.add_parts_for_biblio_fingerprint.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_parts_for_biblio_fingerprint.sql [deleted file]

index 9669a87..bc6502e 100644 (file)
@@ -91,7 +91,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 ('1015', :eg_version); -- Bmagic/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1016', :eg_version); -- kmlussier/miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1016.data.add_parts_for_biblio_fingerprint.sql b/Open-ILS/src/sql/Pg/upgrade/1016.data.add_parts_for_biblio_fingerprint.sql
new file mode 100644 (file)
index 0000000..a0728be
--- /dev/null
@@ -0,0 +1,19 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1016', :eg_version);
+
+INSERT INTO config.biblio_fingerprint (name, xpath, format)
+    VALUES (
+        'PartName',
+        '//mods32:mods/mods32:titleInfo/mods32:partName',
+        'mods32'
+    );
+
+INSERT INTO config.biblio_fingerprint (name, xpath, format)
+    VALUES (
+        'PartNumber',
+        '//mods32:mods/mods32:titleInfo/mods32:partNumber',
+        'mods32'
+    );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_parts_for_biblio_fingerprint.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_parts_for_biblio_fingerprint.sql
deleted file mode 100644 (file)
index 37b2b31..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.biblio_fingerprint (name, xpath, format)
-    VALUES (
-        'PartName',
-        '//mods32:mods/mods32:titleInfo/mods32:partName',
-        'mods32'
-    );
-
-INSERT INTO config.biblio_fingerprint (name, xpath, format)
-    VALUES (
-        'PartNumber',
-        '//mods32:mods/mods32:titleInfo/mods32:partNumber',
-        'mods32'
-    );
-
-COMMIT;