DROP INDEX IF EXISTS uniq_items_eis_warehouse_sequence ON items;

CREATE UNIQUE INDEX IF NOT EXISTS uniq_items_eis_warehouse_branch_sequence
    ON items (source_eis_warehouse_stock_id, current_location_id, source_eis_sequence_number);
