Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc | Added new flyway missing files #149

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Refactored/Updated PartSiteInformationAsPlanned maven module to support multi version.
- Refactored/Updated SingleLevelUsageAsBuilt maven module to support multi version.
- Refactored/Updated PCF maven module to support multi version.
- Added new flyway files.


## [2.3.6] - 2024-03-06
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
INSERT INTO sde_permission (sde_permission,description)
VALUES ('consumer_subscribe_download_data_offers','Allows consumer user to subscribe and download data');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('consumer_download_data_offer','Allows consumer user to download data again');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('consumer_view_download_history','Allows consumer user to view download data history');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('consumer_subscribe_download_data_offers','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('consumer_download_data_offer','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('consumer_view_download_history','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('consumer_download_data_offer','User');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('consumer_view_download_history','User');
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
INSERT INTO sde_permission (sde_permission,description)
VALUES ('auto_config_management','Allows Admin user to update auto upload configuration');

INSERT INTO sde_permission (sde_permission,description)
VALUES ('policy_management','Allows Admin user to add/update/delete policy configuration');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('auto_config_management','Admin');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policy_management','Admin');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policy_management','Creator');
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE process_report ADD policy_uuid varchar NULL;

ALTER TABLE process_report ALTER COLUMN usage_policy TYPE text USING usage_policy::text;
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
INSERT INTO sde_permission (sde_permission,description)
VALUES ('search_pcf','Search PCF value in consumer section');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('request_for_pcf_value','Request for PCF value');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('action_on_pcf_request','Action on PCF request');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('view_pcf_history','View PCF history in provider and consumer');


INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('search_pcf','User');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('view_pcf_history','User');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('action_on_pcf_request','Admin');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('search_pcf','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('request_for_pcf_value','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('view_pcf_history','Creator');
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
INSERT INTO sde_permission (sde_permission,description)
VALUES ('policyhub_view_policy_attributes','View policy attributes');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('policyhub_view_policy_types','View policy types');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('policyhub_view_policy_content','View policy content');
INSERT INTO sde_permission (sde_permission,description)
VALUES ('policyhub_policy_content','Allow user to create policy content');


INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_attributes','User');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_types','User');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_content','User');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_policy_content','Admin');

INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_attributes','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_types','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_view_policy_content','Creator');
INSERT INTO sde_role_permission_mapping (sde_permission,sde_role)
VALUES ('policyhub_policy_content','Creator');
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE process_report RENAME COLUMN bpn_numbers TO access_policies;
ALTER TABLE process_report RENAME COLUMN usage_policy TO usage_policies;
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE IF EXISTS pcf_aspect
ADD COLUMN IF NOT EXISTS distributionStageAircraftGhgEmissions FLOAT8 NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE IF EXISTS pcf_requests_tbl
ALTER COLUMN remark TYPE text USING remark::text;
ALTER TABLE IF EXISTS pcf_requests_tbl
ALTER COLUMN message TYPE text USING message::text;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE IF EXISTS single_level_bom_as_planned ADD IF NOT EXISTS measurement_unit VARCHAR NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/********************************************************************************
* Copyright (c) 2024 T-Systems International GmbH
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* 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.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

ALTER TABLE IF EXISTS pcf_response_tbl ADD IF NOT EXISTS message text NULL;
Loading