The auditor schemas will be different for a from-scratch DB vs an upgraded database,
but just like the would-be iPhone purchaser says, "I don't care."
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17136
dcc99617-32d9-48b4-a31d-
7c20da2025e4
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);
-ALTER TABLE auditor.asset_call_number_history ADD COLUMN label_class BIGINT NOT NULL;
+ALTER TABLE auditor.asset_call_number_history ADD COLUMN label_class BIGINT;
ALTER TABLE auditor.asset_call_number_history ADD COLUMN label_sortkey TEXT;
CREATE OR REPLACE FUNCTION asset.label_normalizer() RETURNS TRIGGER AS $func$