text: --  Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
  --  SPDX-License-Identifier: Apache-2.0
  
  -- add party_id to party_entries
  ALTER TABLE party_entries
    ADD party_id NUMBER;
  CREATE INDEX idx_party_entries_party_id_and_ledger_offset ON party_entries(party_id, ledger_offset);
  