From e9515f2ab6513185e66777608cb2b412e73b1248 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Mon, 7 Oct 2024 13:49:18 -0300 Subject: [PATCH] Sync main -> 10.0.x --- .../V1.35.0__create_runtime_PostgreSQL.sql | 42 ------------------- .../V10.0.0__add_business_key_PostgreSQL.sql | 31 -------------- .../V10.0.1__alter_correlation_PostgreSQL.sql | 21 ---------- 3 files changed, 94 deletions(-) delete mode 100644 addons/common/persistence/postgresql/src/main/resources/db/migration/V1.35.0__create_runtime_PostgreSQL.sql delete mode 100644 addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.0__add_business_key_PostgreSQL.sql delete mode 100644 addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.1__alter_correlation_PostgreSQL.sql diff --git a/addons/common/persistence/postgresql/src/main/resources/db/migration/V1.35.0__create_runtime_PostgreSQL.sql b/addons/common/persistence/postgresql/src/main/resources/db/migration/V1.35.0__create_runtime_PostgreSQL.sql deleted file mode 100644 index 741764283e1..00000000000 --- a/addons/common/persistence/postgresql/src/main/resources/db/migration/V1.35.0__create_runtime_PostgreSQL.sql +++ /dev/null @@ -1,42 +0,0 @@ --- --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://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. --- - --- To be used with kie-addons-quarkus-persistence-jdbc for Quarkus or kie-addons-springboot-persistence-jdbc for SpringBoot -CREATE TABLE process_instances -( - id character(36) NOT NULL, - payload bytea NOT NULL, - process_id character varying NOT NULL, - version bigint, - process_version character varying, - CONSTRAINT process_instances_pkey PRIMARY KEY (id) -); -CREATE INDEX idx_process_instances_process_id ON process_instances (process_id, id, process_version); - -CREATE TABLE correlation_instances -( - id character(36) NOT NULL, - encoded_correlation_id character varying(36) NOT NULL UNIQUE, - correlated_id character varying(36) NOT NULL, - correlation json NOT NULL, - version bigint, - CONSTRAINT correlation_instances_pkey PRIMARY KEY (id) -); -CREATE INDEX idx_correlation_instances_encoded_id ON correlation_instances (encoded_correlation_id); -CREATE INDEX idx_correlation_instances_correlated_id ON correlation_instances (correlated_id); diff --git a/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.0__add_business_key_PostgreSQL.sql b/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.0__add_business_key_PostgreSQL.sql deleted file mode 100644 index 22ef0f40844..00000000000 --- a/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.0__add_business_key_PostgreSQL.sql +++ /dev/null @@ -1,31 +0,0 @@ --- --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://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. --- - -CREATE TABLE business_key_mapping ( - business_key character (255) NOT NULL, - process_instance_id character (36) NOT NULL, - PRIMARY KEY (business_key), - CONSTRAINT fk_process_instances - FOREIGN KEY (process_instance_id) - REFERENCES process_instances(id) - ON DELETE CASCADE -); - - -CREATE INDEX idx_business_key_process_instance_id ON business_key_mapping (process_instance_id); diff --git a/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.1__alter_correlation_PostgreSQL.sql b/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.1__alter_correlation_PostgreSQL.sql deleted file mode 100644 index 42a9340b4ea..00000000000 --- a/addons/common/persistence/postgresql/src/main/resources/db/migration/V10.0.1__alter_correlation_PostgreSQL.sql +++ /dev/null @@ -1,21 +0,0 @@ --- --- Licensed to the Apache Software Foundation (ASF) under one --- or more contributor license agreements. See the NOTICE file --- distributed with this work for additional information --- regarding copyright ownership. The ASF licenses this file --- to you under the Apache License, Version 2.0 (the --- "License"); you may not use this file except in compliance --- with the License. You may obtain a copy of the License at --- --- http://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. --- - -ALTER TABLE correlation_instances -ALTER COLUMN correlation TYPE character varying;