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,
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 (
--- /dev/null
+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;