[open-ils-commits] r19791 - in branches/rel_2_1/Open-ILS/src/sql/Pg: . upgrade (dbwells)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 17 09:29:04 EDT 2011
Author: dbwells
Date: 2011-03-17 09:29:02 -0400 (Thu, 17 Mar 2011)
New Revision: 19791
Added:
branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql
Modified:
branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql
branches/rel_2_1/Open-ILS/src/sql/Pg/040.schema.asset.sql
Log:
Treat call number fields 090 and 092 as local LC and Dewey (respectively) based on de facto standards.
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-03-17 13:22:31 UTC (rev 19790)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-03-17 13:29:02 UTC (rev 19791)
@@ -70,7 +70,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0500'); -- miker for dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0502'); -- dbwells
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/040.schema.asset.sql 2011-03-17 13:22:31 UTC (rev 19790)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/040.schema.asset.sql 2011-03-17 13:29:02 UTC (rev 19791)
@@ -275,8 +275,8 @@
INSERT INTO asset.call_number_class (name, normalizer, field) VALUES
('Generic', 'asset.label_normalizer_generic', '050ab,055ab,060ab,070ab,080ab,082ab,086ab,088ab,090,092,096,098,099'),
- ('Dewey (DDC)', 'asset.label_normalizer_dewey', '080ab,082ab'),
- ('Library of Congress (LC)', 'asset.label_normalizer_lc', '050ab,055ab')
+ ('Dewey (DDC)', 'asset.label_normalizer_dewey', '080ab,082ab,092abef'),
+ ('Library of Congress (LC)', 'asset.label_normalizer_lc', '050ab,055ab,090abef')
;
CREATE TABLE asset.call_number (
Copied: branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql (from rev 19790, trunk/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql)
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql (rev 0)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql 2011-03-17 13:29:02 UTC (rev 19791)
@@ -0,0 +1,17 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0502'); -- dbwells
+
+-- Dewey fields
+UPDATE asset.call_number_class
+ SET field = '080ab,082ab,092abef'
+ WHERE id = 2
+;
+
+-- LC fields
+UPDATE asset.call_number_class
+ SET field = '050ab,055ab,090abef'
+ WHERE id = 3
+;
+
+COMMIT;
More information about the open-ils-commits
mailing list