From 4755baac0baf8a82feec78c387863273e259ac67 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 9 Aug 2010 14:45:26 +0000 Subject: [PATCH] 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 --- Open-ILS/src/sql/Pg/upgrade/0364.schema.call_number_normalization.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d68f801976..e8e70ba864 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 -- 2.11.0