diff --git a/edc-controlplane/README.md b/edc-controlplane/README.md index f715f983d..ae4584ce5 100644 --- a/edc-controlplane/README.md +++ b/edc-controlplane/README.md @@ -544,4 +544,4 @@ The DataManagement API can also initiate a contract negotiation using the actual https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/issues/1265 **Solution** -Delete non-transformable ContractDefinition or Policy. \ No newline at end of file +Delete non-transformable ContractDefinition or Policy. diff --git a/edc-extensions/postgresql-migration/src/main/resources/net/catenax/edc/postgresql/migration/contractnegotiation/V0_0_2__Alter_ContractNegotation_Contract_Agreement_Id_Schema.sql b/edc-extensions/postgresql-migration/src/main/resources/net/catenax/edc/postgresql/migration/contractnegotiation/V0_0_2__Alter_ContractNegotation_Contract_Agreement_Id_Schema.sql new file mode 100644 index 000000000..966653f2c --- /dev/null +++ b/edc-extensions/postgresql-migration/src/main/resources/net/catenax/edc/postgresql/migration/contractnegotiation/V0_0_2__Alter_ContractNegotation_Contract_Agreement_Id_Schema.sql @@ -0,0 +1,16 @@ +-- +-- Copyright (c) 2022 Mercedes-Benz Tech Innovation GmbH +-- +-- This program and the accompanying materials are made available under the +-- terms of the Apache License, Version 2.0 which is available at +-- https://www.apache.org/licenses/LICENSE-2.0 +-- +-- SPDX-License-Identifier: Apache-2.0 +-- +-- Contributors: +-- Mercedes-Benz Tech Innovation GmbH - contract agreement id column rename, negotiation correlation id nullable +-- + +-- RENAME id column and make correlation_id nullable +ALTER TABLE IF EXISTS edc_contract_agreement RENAME COLUMN id to agreement_id; +ALTER TABLE IF EXISTS edc_contract_negotiation ALTER COLUMN correlation_id DROP NOT NULL;