-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from holunda-io/feature/994_spring_boot_3_2
Upgrade polyflow + camunda + add jpa view scripts
- Loading branch information
Showing
16 changed files
with
284 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...local-polyflow/src/main/resources/db/migrations/V0_0_14__postgres_engine_7.18_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ timestamp; | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
6 changes: 6 additions & 0 deletions
6
...m-view-only/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
create view PLF_VIEW_TASK_AND_DATA_ENTRY_PAYLOAD as | ||
((select pc.TASK_ID, dea.PATH, dea.VALUE | ||
from PLF_TASK_CORRELATIONS pc | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES dea on pc.ENTRY_ID = dea.ENTRY_ID and pc.ENTRY_TYPE = dea.ENTRY_TYPE) | ||
union | ||
select * from PLF_TASK_PAYLOAD_ATTRIBUTES); |
23 changes: 23 additions & 0 deletions
23
...rm-view-only/src/main/resources/db/migrations/V0_0_7__jpa_plf_data_entry_correlations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create table PLF_DATA_ENTRY_CORRELATIONS | ||
( | ||
OWNING_ENTRY_TYPE varchar(255) not null, | ||
OWNING_ENTRY_ID varchar(64) not null, | ||
ENTRY_TYPE varchar(255) not null, | ||
ENTRY_ID varchar(64) not null, | ||
primary key (OWNING_ENTRY_TYPE, OWNING_ENTRY_ID, ENTRY_TYPE, ENTRY_ID) | ||
); | ||
|
||
create view PLF_VIEW_DATA_ENTRY_PAYLOAD as | ||
( | ||
select * | ||
from PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES | ||
union | ||
(select ec.OWNING_ENTRY_ID as ENTRY_ID, | ||
ec.OWNING_ENTRY_TYPE as ENTRY_TYPE, | ||
ep.path as PATH, | ||
ep.value as VALUE | ||
from PLF_DATA_ENTRY_CORRELATIONS ec | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES ep | ||
on | ||
ec.ENTRY_ID = ep.ENTRY_ID and ec.ENTRY_TYPE = ep.ENTRY_TYPE) | ||
); |
27 changes: 27 additions & 0 deletions
27
...ss-application/src/main/resources/db/migrations/V0_0_14__postgres_engine_7.18_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ timestamp; | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
6 changes: 6 additions & 0 deletions
6
...pplication/src/main/resources/db/migrations/V0_0_15__jpa_view_task_data_entry_payload.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
create view PLF_VIEW_TASK_AND_DATA_ENTRY_PAYLOAD as | ||
((select pc.TASK_ID, dea.PATH, dea.VALUE | ||
from PLF_TASK_CORRELATIONS pc | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES dea on pc.ENTRY_ID = dea.ENTRY_ID and pc.ENTRY_TYPE = dea.ENTRY_TYPE) | ||
union | ||
select * from PLF_TASK_PAYLOAD_ATTRIBUTES); |
23 changes: 23 additions & 0 deletions
23
...application/src/main/resources/db/migrations/V0_0_16__jpa_plf_data_entry_correlations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create table PLF_DATA_ENTRY_CORRELATIONS | ||
( | ||
OWNING_ENTRY_TYPE varchar(255) not null, | ||
OWNING_ENTRY_ID varchar(64) not null, | ||
ENTRY_TYPE varchar(255) not null, | ||
ENTRY_ID varchar(64) not null, | ||
primary key (OWNING_ENTRY_TYPE, OWNING_ENTRY_ID, ENTRY_TYPE, ENTRY_ID) | ||
); | ||
|
||
create view PLF_VIEW_DATA_ENTRY_PAYLOAD as | ||
( | ||
select * | ||
from PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES | ||
union | ||
(select ec.OWNING_ENTRY_ID as ENTRY_ID, | ||
ec.OWNING_ENTRY_TYPE as ENTRY_TYPE, | ||
ep.path as PATH, | ||
ep.value as VALUE | ||
from PLF_DATA_ENTRY_CORRELATIONS ec | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES ep | ||
on | ||
ec.ENTRY_ID = ep.ENTRY_ID and ec.ENTRY_TYPE = ep.ENTRY_TYPE) | ||
); |
6 changes: 6 additions & 0 deletions
6
...latform-jpa/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
create view PLF_VIEW_TASK_AND_DATA_ENTRY_PAYLOAD as | ||
((select pc.TASK_ID, dea.PATH, dea.VALUE | ||
from PLF_TASK_CORRELATIONS pc | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES dea on pc.ENTRY_ID = dea.ENTRY_ID and pc.ENTRY_TYPE = dea.ENTRY_TYPE) | ||
union | ||
select * from PLF_TASK_PAYLOAD_ATTRIBUTES); |
23 changes: 23 additions & 0 deletions
23
...platform-jpa/src/main/resources/db/migrations/V0_0_7__jpa_plf_data_entry_correlations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create table PLF_DATA_ENTRY_CORRELATIONS | ||
( | ||
OWNING_ENTRY_TYPE varchar(255) not null, | ||
OWNING_ENTRY_ID varchar(64) not null, | ||
ENTRY_TYPE varchar(255) not null, | ||
ENTRY_ID varchar(64) not null, | ||
primary key (OWNING_ENTRY_TYPE, OWNING_ENTRY_ID, ENTRY_TYPE, ENTRY_ID) | ||
); | ||
|
||
create view PLF_VIEW_DATA_ENTRY_PAYLOAD as | ||
( | ||
select * | ||
from PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES | ||
union | ||
(select ec.OWNING_ENTRY_ID as ENTRY_ID, | ||
ec.OWNING_ENTRY_TYPE as ENTRY_TYPE, | ||
ep.path as PATH, | ||
ep.value as VALUE | ||
from PLF_DATA_ENTRY_CORRELATIONS ec | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES ep | ||
on | ||
ec.ENTRY_ID = ep.ENTRY_ID and ec.ENTRY_TYPE = ep.ENTRY_TYPE) | ||
); |
27 changes: 27 additions & 0 deletions
27
...local-polyflow/src/main/resources/db/migrations/V0_0_13__postgres_engine_7.18_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ timestamp; | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
27 changes: 27 additions & 0 deletions
27
...pa-maria/src/main/resources/db/migrations/mariadb/V0_0_8__mariadb_engine_7.19_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ datetime(3); | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
27 changes: 27 additions & 0 deletions
27
...gle-node-jpa-maria/src/test/resources/db/migrations/h2/V0_0_8__h2_engine_7.19_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ timestamp; | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
27 changes: 27 additions & 0 deletions
27
.../src/main/resources/db/migrations/h2-postgresql/V0_0_15__postgres_engine_7.18_to_7.21.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- | ||
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
-- under one or more contributor license agreements. See the NOTICE file | ||
-- distributed with this work for additional information regarding copyright | ||
-- ownership. Camunda licenses this file to you under the Apache License, | ||
-- Version 2.0; 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. | ||
-- | ||
|
||
insert into ACT_GE_SCHEMA_LOG | ||
values ('1000', CURRENT_TIMESTAMP, '7.21.0'); | ||
|
||
alter table ACT_RU_EXT_TASK | ||
add column CREATE_TIME_ timestamp; | ||
|
||
alter table ACT_RU_JOB | ||
add column ROOT_PROC_INST_ID_ varchar(64); | ||
|
||
create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); |
6 changes: 6 additions & 0 deletions
6
.../main/resources/db/migrations/h2-postgresql/V0_0_16__jpa_view_task_data_entry_payload.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
create view PLF_VIEW_TASK_AND_DATA_ENTRY_PAYLOAD as | ||
((select pc.TASK_ID, dea.PATH, dea.VALUE | ||
from PLF_TASK_CORRELATIONS pc | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES dea on pc.ENTRY_ID = dea.ENTRY_ID and pc.ENTRY_TYPE = dea.ENTRY_TYPE) | ||
union | ||
select * from PLF_TASK_PAYLOAD_ATTRIBUTES); |
23 changes: 23 additions & 0 deletions
23
...c/main/resources/db/migrations/h2-postgresql/V0_0_17__jpa_plf_data_entry_correlations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create table PLF_DATA_ENTRY_CORRELATIONS | ||
( | ||
OWNING_ENTRY_TYPE varchar(255) not null, | ||
OWNING_ENTRY_ID varchar(64) not null, | ||
ENTRY_TYPE varchar(255) not null, | ||
ENTRY_ID varchar(64) not null, | ||
primary key (OWNING_ENTRY_TYPE, OWNING_ENTRY_ID, ENTRY_TYPE, ENTRY_ID) | ||
); | ||
|
||
create view PLF_VIEW_DATA_ENTRY_PAYLOAD as | ||
( | ||
select * | ||
from PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES | ||
union | ||
(select ec.OWNING_ENTRY_ID as ENTRY_ID, | ||
ec.OWNING_ENTRY_TYPE as ENTRY_TYPE, | ||
ep.path as PATH, | ||
ep.value as VALUE | ||
from PLF_DATA_ENTRY_CORRELATIONS ec | ||
join PLF_DATA_ENTRY_PAYLOAD_ATTRIBUTES ep | ||
on | ||
ec.ENTRY_ID = ep.ENTRY_ID and ec.ENTRY_TYPE = ep.ENTRY_TYPE) | ||
); |