From: dbs Date: Mon, 9 Aug 2010 14:45:26 +0000 (+0000) Subject: And... keep the index creation on asset.call_number in the right place X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4755baac0baf8a82feec78c387863273e259ac67;p=evergreen%2Fbjwebb.git And... keep the index creation on asset.call_number in the right place There's tears in my coffee. These are not tears of joy. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17139 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql b/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql index d68f80197..e8e70ba86 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql @@ -7,7 +7,6 @@ CREATE TABLE asset.call_number_class ( name TEXT NOT NULL, normalizer TEXT NOT NULL DEFAULT 'asset.normalize_generic' ); -CREATE INDEX asset_call_number_label_sortkey ON asset.call_number(label_sortkey); INSERT INTO asset.call_number_class (name, normalizer) VALUES ('Generic', 'asset.label_normalizer_generic'), @@ -19,6 +18,7 @@ ALTER TABLE auditor.asset_call_number_history ADD COLUMN label_class BIGINT; ALTER TABLE auditor.asset_call_number_history ADD COLUMN label_sortkey TEXT; 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); CREATE OR REPLACE FUNCTION asset.label_normalizer() RETURNS TRIGGER AS $func$ DECLARE