Skip to content

Commit

Permalink
add SQL migrations to reflect recent upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed May 18, 2023
1 parent f4cc866 commit 0794d4a
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 - EDC Snapshot 20220815 Update
--

-- add columns
ALTER TABLE edc_asset_property
ADD COLUMN property_is_private BOOLEAN;
Original file line number Diff line number Diff line change
@@ -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 - EDC Snapshot 20221201 Update
--

-- add columns
ALTER TABLE edc_contract_definitions
DROP COLUMN validity;
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--
-- Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
--
-- 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:
-- Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
--

-- alter type of column "type"
ALTER TABLE edc_contract_negotiation
ALTER COLUMN type TYPE VARCHAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--
-- Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
--
-- 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:
-- Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
--

-- add column
ALTER TABLE edc_transfer_process
RENAME COLUMN transferprocess_properties TO properties;
ALTER TABLE edc_transfer_process
DROP COLUMN IF EXISTS transfer_type;

0 comments on commit 0794d4a

Please sign in to comment.