-
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.
Provide scripts to support polyflow 4.2.0 (correlation tables, ...)
- Loading branch information
1 parent
749b045
commit c76960c
Showing
4 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
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) | ||
); |
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) | ||
); |
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) | ||
); |
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) | ||
); |