[open-ils-commits] r17135 - trunk/Open-ILS/src/sql/Pg/upgrade (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 9 09:48:46 EDT 2010
Author: dbs
Date: 2010-08-09 09:48:45 -0400 (Mon, 09 Aug 2010)
New Revision: 17135
Modified:
trunk/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql
Log:
Get the entries into asset.call_number_class before altering asset.call_number
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql 2010-08-09 13:15:56 UTC (rev 17134)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql 2010-08-09 13:48:45 UTC (rev 17135)
@@ -8,6 +8,12 @@
normalizer TEXT NOT NULL DEFAULT 'asset.normalize_generic'
);
+INSERT INTO asset.call_number_class (name, normalizer) VALUES
+ ('Generic', 'asset.label_normalizer_generic'),
+ ('Dewey (DDC)', 'asset.label_normalizer_dewey'),
+ ('Library of Congress (LC)', 'asset.label_normalizer_lc')
+;
+
ALTER TABLE asset.call_number ADD COLUMN label_class BIGINT DEFAULT 1 NOT NULL REFERENCES asset.call_number_class(id) DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE asset.call_number ADD COLUMN label_sortkey TEXT;
CREATE INDEX asset_call_number_label_sortkey ON asset.call_number(label_sortkey);
@@ -99,10 +105,4 @@
$func$ LANGUAGE PLPERLU;
-INSERT INTO asset.call_number_class (name, normalizer) VALUES
- ('Generic', 'asset.label_normalizer_generic'),
- ('Dewey (DDC)', 'asset.label_normalizer_dewey'),
- ('Library of Congress (LC)', 'asset.label_normalizer_lc')
-;
-
COMMIT;
More information about the open-ils-commits
mailing list