From: Mike Rylander Date: Thu, 24 Mar 2011 15:20:03 +0000 (-0400) Subject: Missed one table, and a diff-based breakage X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=be17c3e0fb0d794746d5711cddd6e8faa06d11c8;p=evergreen%2Fequinox.git Missed one table, and a diff-based breakage --- diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.parts_and_cnaffix.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.parts_and_cnaffix.sql index ab87df8708..ce6d0acc1c 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.parts_and_cnaffix.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.parts_and_cnaffix.sql @@ -28,6 +28,13 @@ $$ LANGUAGE PLPGSQL; CREATE TRIGGER norm_sort_label BEFORE INSERT OR UPDATE ON biblio.monograph_part FOR EACH ROW EXECUTE PROCEDURE biblio.normalize_biblio_monograph_part_sortkey(); +CREATE TABLE asset.copy_part_map ( + id SERIAL PRIMARY KEY, + target_copy BIGINT NOT NULL, -- points o asset.copy + part INT NOT NULL REFERENCES biblio.monograph_part (id) ON DELETE CASCADE +); +CREATE UNIQUE INDEX copy_part_map_cp_part_idx ON asset.copy_part_map (target_copy, part); + CREATE OR REPLACE FUNCTION asset.normalize_affix_sortkey () RETURNS TRIGGER AS $$ BEGIN NEW.label_sortkey := REGEXP_REPLACE( @@ -83,7 +90,8 @@ INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) 'coust', 'label'), oils_i18n_gettext( 'ui.cat.volume_copy_editor.horizontal', - 'The main entry point for this interface is in Holdings Maintenance, Actions for Selected Rows, Edit Item Attributes / Call Numbers / Replace Barcodes. This setting changes the top and bottom panes for that interface into left and right panes.',+ 'coust', 'description'), + 'The main entry point for this interface is in Holdings Maintenance, Actions for Selected Rows, Edit Item Attributes / Call Numbers / Replace Barcodes. This setting changes the top and bottom panes for that interface into left and right panes.', + 'coust', 'description'), 'bool' );