diff --git a/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql b/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql new file mode 100644 index 00000000..6c5de79c --- /dev/null +++ b/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql @@ -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); diff --git a/scenarios/distributed-axon-server/process-application/src/main/resources/db/migrations/V0_0_15__jpa_view_task_data_entry_payload.sql b/scenarios/distributed-axon-server/process-application/src/main/resources/db/migrations/V0_0_15__jpa_view_task_data_entry_payload.sql new file mode 100644 index 00000000..6c5de79c --- /dev/null +++ b/scenarios/distributed-axon-server/process-application/src/main/resources/db/migrations/V0_0_15__jpa_view_task_data_entry_payload.sql @@ -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); diff --git a/scenarios/distributed-axon-server/process-platform-jpa/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql b/scenarios/distributed-axon-server/process-platform-jpa/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql new file mode 100644 index 00000000..6c5de79c --- /dev/null +++ b/scenarios/distributed-axon-server/process-platform-jpa/src/main/resources/db/migrations/V0_0_6__jpa_view_task_data_entry_payload.sql @@ -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); diff --git a/scenarios/single-node-jpa/src/main/resources/db/migrations/h2-postgresql/V0_0_16__jpa_view_task_data_entry_payload.sql b/scenarios/single-node-jpa/src/main/resources/db/migrations/h2-postgresql/V0_0_16__jpa_view_task_data_entry_payload.sql new file mode 100644 index 00000000..6c5de79c --- /dev/null +++ b/scenarios/single-node-jpa/src/main/resources/db/migrations/h2-postgresql/V0_0_16__jpa_view_task_data_entry_payload.sql @@ -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);