Stampping upgrade for authorsort fix from Lebbeous
authorMike Rylander <mrylander@gmail.com>
Fri, 1 Jul 2011 15:20:44 +0000 (11:20 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 1 Jul 2011 15:20:44 +0000 (11:20 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql [deleted file]

index 6302a8e..320534e 100644 (file)
@@ -86,7 +86,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 ('0yyy', :eg_version); -- senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0570', :eg_version); -- senator
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
new file mode 100644 (file)
index 0000000..33a2982
--- /dev/null
@@ -0,0 +1,14 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0570', :eg_version);
+
+-- Not everything in 1XX tags should become part of the authorsort field
+-- ($0 for example).  The list of subfields chosen here is a superset of all
+-- the fields found in the LoC authority mappin definitions for 1XX fields.
+-- Anyway, if more fields should be here, add them.
+
+UPDATE config.record_attr_definition
+    SET sf_list = 'abcdefgklmnopqrstvxyz'
+    WHERE name='authorsort' AND sf_list IS NULL;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql
deleted file mode 100644 (file)
index e62ccef..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('0yyy', :eg_version);
-
--- Not everything in 1XX tags should become part of the authorsort field
--- ($0 for example).  The list of subfields chosen here is a superset of all
--- the fields found in the LoC authority mappin definitions for 1XX fields.
--- Anyway, if more fields should be here, add them.
-
-UPDATE config.record_attr_definition
-    SET sf_list = 'abcdefgklmnopqrstvxyz'
-    WHERE name='authorsort' AND sf_list IS NULL;
-
-COMMIT;