Schema Changes: 2.8.2

Upgrade: 2.8.1 → 2.8.2

This release applied 4 migration(s) to the database schema.

ID Type Description

917

schema

index record in sre

918

schema

index ash record

919

schema

drop acq audit fkey

920

schema

disallow double capture

Migration Details

917 — index record in sre

Type: schema

View SQL
-- index serial.record_entry.record



CREATE INDEX serial_record_entry_record_idx ON serial.record_entry ( record );

918 — index ash record

Type: schema

View SQL
-- index authority.simple_heading.record so that reingesting
-- authority records does not require a sequential scan of ash


CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);

919 — drop acq audit fkey

Type: schema

View SQL
ALTER TABLE acq.acq_lineitem_history DROP CONSTRAINT IF EXISTS acq_lineitem_history_queued_record_fkey;

920 — disallow double capture

Type: schema

View SQL
CREATE UNIQUE INDEX
    hold_request_capture_protect_idx ON action.hold_request (current_copy)
    WHERE   current_copy IS NOT NULL -- sometimes null in old/bad data
            AND capture_time IS NOT NULL
            AND cancel_time IS NULL
            AND fulfillment_time IS NULL;