From 4cf9961a9035729d380fc836932b978d03b1ec20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Sun, 6 Oct 2024 23:37:43 +0800
Subject: [PATCH 1/5] =?UTF-8?q?[=E5=8D=87=E7=BA=A7]=20Debezium=20=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E5=8D=87=E7=BA=A7=E8=87=B3=203.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../docker-compose/linux/herodotus/env.full.debezium.yml | 6 +++---
.../docker-compose/linux/herodotus/env.full.tencent.yml | 4 ++--
.../docker-compose/windows/herodotus/env.full.debezium.yml | 6 +++---
.../docker-compose/windows/herodotus/env.full.tencent.yml | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
index 275ef179..f3b520e2 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
@@ -32,7 +32,7 @@ services:
- "9849:9849"
zookeeper:
- image: debezium/zookeeper:2.7
+ image: debezium/zookeeper:3.0
container_name: zookeeper
hostname: zookeeper
restart: always
@@ -44,7 +44,7 @@ services:
- "3888:3888"
kafka:
- image: debezium/kafka:2.7
+ image: debezium/kafka:3.0
container_name: kafka
hostname: kafka
restart: always
@@ -63,7 +63,7 @@ services:
- zookeeper
connect:
- image: debezium/connect:2.7
+ image: debezium/connect:3.0
container_name: connect
hostname: connect
restart: always
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml b/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml
index 2328b581..d10c473b 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml
@@ -15,7 +15,7 @@ services:
- "9091:9091"
zookeeper:
- image: debezium/zookeeper:2.7
+ image: debezium/zookeeper:3.0
container_name: zookeeper
hostname: zookeeper
environment:
@@ -26,7 +26,7 @@ services:
- "3888:3888"
kafka:
- image: debezium/kafka:2.7
+ image: debezium/kafka:3.0
container_name: kafka
hostname: kafka
ports:
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
index d39b1600..deb1bb4d 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
@@ -32,7 +32,7 @@ services:
- "9849:9849"
zookeeper:
- image: debezium/zookeeper:2.7
+ image: debezium/zookeeper:3.0
container_name: zookeeper
hostname: zookeeper
restart: always
@@ -44,7 +44,7 @@ services:
- "3888:3888"
kafka:
- image: debezium/kafka:2.7
+ image: debezium/kafka:3.0
container_name: kafka
hostname: kafka
restart: always
@@ -63,7 +63,7 @@ services:
- zookeeper
connect:
- image: debezium/connect:2.7
+ image: debezium/connect:3.0
container_name: connect
hostname: connect
restart: always
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml
index 501948f3..465b6dfb 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml
@@ -15,7 +15,7 @@ services:
- "9091:9091"
zookeeper:
- image: debezium/zookeeper:2.7
+ image: debezium/zookeeper:3.0
container_name: zookeeper
environment:
ZOOKEEPER_SERVER_ID: 1
@@ -25,7 +25,7 @@ services:
- "3888:3888"
kafka:
- image: debezium/kafka:2.7
+ image: debezium/kafka:3.0
container_name: kafka
ports:
- "9092:9092"
From b1bb6e0585b55d26e1e58944cec46240fa7e30a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Mon, 7 Oct 2024 15:54:09 +0800
Subject: [PATCH 2/5] =?UTF-8?q?[=E5=8D=87=E7=BA=A7]=20Camunda=20=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E5=8D=87=E7=BA=A7=E8=87=B3=207.22.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../sqls/create/cockroachdb_engine_7.20.0.sql | 1403 ----------------
.../sqls/create/cockroachdb_engine_7.21.0.sql | 1406 ----------------
.../create/cockroachdb_identity_7.20.0.sql | 105 --
.../create/cockroachdb_identity_7.21.0.sql | 105 --
.../sqls/create/db2_engine_7.20.0.sql | 1412 ----------------
...ngine_7.21.0.sql => db2_engine_7.22.0.sql} | 11 +-
.../sqls/create/db2_identity_7.21.0.sql | 101 --
...ity_7.20.0.sql => db2_identity_7.22.0.sql} | 0
.../sqls/create/h2_engine_7.20.0.sql | 1386 ----------------
...engine_7.21.0.sql => h2_engine_7.22.0.sql} | 11 +-
.../sqls/create/h2_identity_7.21.0.sql | 104 --
...tity_7.20.0.sql => h2_identity_7.22.0.sql} | 0
.../sqls/create/mariadb_engine_7.20.0.sql | 1390 ----------------
...e_7.21.0.sql => mariadb_engine_7.22.0.sql} | 11 +-
.../sqls/create/mariadb_identity_7.21.0.sql | 104 --
...7.20.0.sql => mariadb_identity_7.22.0.sql} | 0
.../sqls/create/mssql_engine_7.20.0.sql | 1402 ----------------
...ine_7.21.0.sql => mssql_engine_7.22.0.sql} | 11 +-
.../sqls/create/mssql_identity_7.21.0.sql | 99 --
...y_7.20.0.sql => mssql_identity_7.22.0.sql} | 0
.../sqls/create/mysql_engine_7.20.0.sql | 1391 ----------------
...ine_7.21.0.sql => mysql_engine_7.22.0.sql} | 11 +-
.../sqls/create/mysql_identity_7.21.0.sql | 104 --
...y_7.20.0.sql => mysql_identity_7.22.0.sql} | 0
.../sqls/create/oracle_engine_7.20.0.sql | 1415 -----------------
...ne_7.21.0.sql => oracle_engine_7.22.0.sql} | 11 +-
.../sqls/create/oracle_identity_7.21.0.sql | 110 --
..._7.20.0.sql => oracle_identity_7.22.0.sql} | 0
.../sqls/create/postgres_engine_7.20.0.sql | 1410 ----------------
..._7.21.0.sql => postgres_engine_7.22.0.sql} | 11 +-
.../sqls/create/postgres_identity_7.21.0.sql | 109 --
....20.0.sql => postgres_identity_7.22.0.sql} | 0
.../sqls/drop/cockroachdb_engine_7.20.0.sql | 523 ------
.../sqls/drop/cockroachdb_engine_7.21.0.sql | 524 ------
.../sqls/drop/cockroachdb_identity_7.20.0.sql | 51 -
.../sqls/drop/cockroachdb_identity_7.21.0.sql | 51 -
.../resources/sqls/drop/db2_engine_7.20.0.sql | 521 ------
...ngine_7.21.0.sql => db2_engine_7.22.0.sql} | 1 +
.../sqls/drop/db2_identity_7.21.0.sql | 41 -
...ity_7.20.0.sql => db2_identity_7.22.0.sql} | 0
.../resources/sqls/drop/h2_engine_7.20.0.sql | 500 ------
...engine_7.21.0.sql => h2_engine_7.22.0.sql} | 1 +
.../sqls/drop/h2_identity_7.21.0.sql | 44 -
...tity_7.20.0.sql => h2_identity_7.22.0.sql} | 0
.../sqls/drop/mariadb_engine_7.20.0.sql | 495 ------
...e_7.21.0.sql => mariadb_engine_7.22.0.sql} | 1 +
...7.20.0.sql => mariadb_identity_7.22.0.sql} | 0
.../sqls/drop/mssql_engine_7.20.0.sql | 518 ------
...ine_7.21.0.sql => mssql_engine_7.22.0.sql} | 1 +
.../sqls/drop/mssql_identity_7.21.0.sql | 41 -
...y_7.20.0.sql => mssql_identity_7.22.0.sql} | 0
.../sqls/drop/mysql_engine_7.20.0.sql | 496 ------
...ine_7.21.0.sql => mysql_engine_7.22.0.sql} | 1 +
.../sqls/drop/mysql_identity_7.20.0.sql | 38 -
.../sqls/drop/mysql_identity_7.21.0.sql | 38 -
...y_7.21.0.sql => mysql_identity_7.22.0.sql} | 0
.../sqls/drop/oracle_engine_7.20.0.sql | 521 ------
...ne_7.21.0.sql => oracle_engine_7.22.0.sql} | 1 +
.../sqls/drop/oracle_identity_7.21.0.sql | 46 -
..._7.20.0.sql => oracle_identity_7.22.0.sql} | 0
.../sqls/drop/postgres_engine_7.20.0.sql | 524 ------
..._7.21.0.sql => postgres_engine_7.22.0.sql} | 1 +
.../sqls/drop/postgres_identity_7.21.0.sql | 50 -
....20.0.sql => postgres_identity_7.22.0.sql} | 0
...quibase.cockroachdb.create.case.engine.sql | 135 --
...uibase.cockroachdb.create.case.history.sql | 61 -
...ase.cockroachdb.create.decision.engine.sql | 59 -
...se.cockroachdb.create.decision.history.sql | 108 --
.../liquibase.cockroachdb.create.engine.sql | 589 -------
.../liquibase.cockroachdb.create.history.sql | 442 -----
.../liquibase.cockroachdb.create.identity.sql | 105 --
.../sqls/liquibase/camunda-changelog.xml | 13 +-
.../cockroachdb_engine_7.17_to_7.18.sql | 38 -
.../cockroachdb_engine_7.18_to_7.19.sql | 19 -
.../cockroachdb_engine_7.19_to_7.20.sql | 19 -
.../upgrade/db2_engine_7.21_to_7.22.sql | 29 +
.../upgrade/h2_engine_7.21_to_7.22.sql | 29 +
.../upgrade/mariadb_engine_7.21_to_7.22.sql | 29 +
.../upgrade/mssql_engine_7.21_to_7.22.sql} | 16 +-
.../upgrade/mysql_engine_7.21_to_7.22.sql | 29 +
.../upgrade/oracle_engine_7.21_to_7.22.sql} | 20 +-
.../upgrade/postgres_engine_7.20_to_7.21.sql | 2 +-
.../upgrade/postgres_engine_7.21_to_7.22.sql | 29 +
.../cockroachdb_engine_7.14_to_7.15.sql | 39 -
.../cockroachdb_engine_7.15_to_7.16.sql | 30 -
.../cockroachdb_engine_7.17_to_7.18.sql | 38 -
.../cockroachdb_engine_7.18_to_7.19.sql | 19 -
.../cockroachdb_engine_7.19_to_7.20.sql | 19 -
.../sqls/upgrade/db2_engine_7.21_to_7.22.sql | 29 +
.../sqls/upgrade/h2_engine_7.21_to_7.22.sql | 29 +
.../upgrade/mariadb_engine_7.21_to_7.22.sql | 29 +
.../mssql_engine_7.21_to_7.22.sql} | 16 +-
.../upgrade/mysql_engine_7.21_to_7.22.sql | 29 +
.../oracle_engine_7.21_to_7.22.sql} | 20 +-
.../upgrade/postgres_engine_7.20_to_7.21.sql | 2 +-
.../upgrade/postgres_engine_7.21_to_7.22.sql | 29 +
96 files changed, 396 insertions(+), 20365 deletions(-)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.20.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.21.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.20.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.21.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{db2_engine_7.21.0.sql => db2_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{db2_identity_7.20.0.sql => db2_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{h2_engine_7.21.0.sql => h2_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{h2_identity_7.20.0.sql => h2_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mariadb_engine_7.21.0.sql => mariadb_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mariadb_identity_7.20.0.sql => mariadb_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mssql_engine_7.21.0.sql => mssql_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mssql_identity_7.20.0.sql => mssql_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mysql_engine_7.21.0.sql => mysql_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{mysql_identity_7.20.0.sql => mysql_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{oracle_engine_7.21.0.sql => oracle_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{oracle_identity_7.20.0.sql => oracle_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{postgres_engine_7.21.0.sql => postgres_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/{postgres_identity_7.20.0.sql => postgres_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.20.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.21.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.20.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.21.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{db2_engine_7.21.0.sql => db2_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{db2_identity_7.20.0.sql => db2_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{h2_engine_7.21.0.sql => h2_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{h2_identity_7.20.0.sql => h2_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mariadb_engine_7.21.0.sql => mariadb_engine_7.22.0.sql} (99%)
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mariadb_identity_7.20.0.sql => mariadb_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mssql_engine_7.21.0.sql => mssql_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mssql_identity_7.20.0.sql => mssql_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mysql_engine_7.21.0.sql => mysql_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.20.0.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{mariadb_identity_7.21.0.sql => mysql_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{oracle_engine_7.21.0.sql => oracle_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{oracle_identity_7.20.0.sql => oracle_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.20.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{postgres_engine_7.21.0.sql => postgres_engine_7.22.0.sql} (99%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.21.0.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/{postgres_identity_7.20.0.sql => postgres_identity_7.22.0.sql} (100%)
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.engine.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.history.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.engine.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.history.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.engine.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.history.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.identity.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.17_to_7.18.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.18_to_7.19.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.19_to_7.20.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/db2_engine_7.21_to_7.22.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/h2_engine_7.21_to_7.22.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mariadb_engine_7.21_to_7.22.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/{upgrade/cockroachdb_engine_7.20_to_7.21.sql => liquibase/upgrade/mssql_engine_7.21_to_7.22.sql} (66%)
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mysql_engine_7.21_to_7.22.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/{upgrade/cockroachdb_engine_7.16_to_7.17.sql => liquibase/upgrade/oracle_engine_7.21_to_7.22.sql} (66%)
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.21_to_7.22.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.14_to_7.15.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.15_to_7.16.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.17_to_7.18.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.18_to_7.19.sql
delete mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.19_to_7.20.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/db2_engine_7.21_to_7.22.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/h2_engine_7.21_to_7.22.sql
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mariadb_engine_7.21_to_7.22.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/{liquibase/upgrade/cockroachdb_engine_7.20_to_7.21.sql => upgrade/mssql_engine_7.21_to_7.22.sql} (66%)
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mysql_engine_7.21_to_7.22.sql
rename services/dante-cloud-bpmn-ability/src/main/resources/sqls/{liquibase/upgrade/cockroachdb_engine_7.16_to_7.17.sql => upgrade/oracle_engine_7.21_to_7.22.sql} (66%)
create mode 100644 services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.21_to_7.22.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.20.0.sql
deleted file mode 100644
index f9966d0f..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.20.0.sql
+++ /dev/null
@@ -1,1403 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ bytea,
- GENERATED_ boolean,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ boolean,
- IS_CONCURRENT_ boolean,
- IS_SCOPE_ boolean,
- IS_EVENT_SCOPE_ boolean,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ boolean,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- LAST_UPDATED_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar (64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ TEXT not null,
- PROPERTIES_ TEXT,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXE_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_,HANDLER_CFG_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-
-create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION(TYPE_,USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION(TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_VARIABLE on ACT_RU_VARIABLE(VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_CASE_DEF on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-create index ACT_IDX_VAR_CASE_EXE on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_CASE_INST_ID on ACT_RU_VARIABLE(CASE_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(64),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ boolean,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ bytea,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.21.0.sql
deleted file mode 100644
index 73be324b..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_engine_7.21.0.sql
+++ /dev/null
@@ -1,1406 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ bytea,
- GENERATED_ boolean,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ boolean,
- IS_CONCURRENT_ boolean,
- IS_SCOPE_ boolean,
- IS_EVENT_SCOPE_ boolean,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ boolean,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- LAST_UPDATED_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar (64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ TEXT not null,
- PROPERTIES_ TEXT,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- CREATE_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXE_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_,HANDLER_CFG_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-
-create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION(TYPE_,USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION(TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_VARIABLE on ACT_RU_VARIABLE(VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_CASE_DEF on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-create index ACT_IDX_VAR_CASE_EXE on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_CASE_INST_ID on ACT_RU_VARIABLE(CASE_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(64),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ boolean,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ bytea,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.20.0.sql
deleted file mode 100644
index 36a8270b..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.20.0.sql
+++ /dev/null
@@ -1,105 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ bytea,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_MEMB_GROUP on ACT_ID_MEMBERSHIP(GROUP_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create index ACT_IDX_MEMB_USER on ACT_ID_MEMBERSHIP(USER_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(TENANT_ID_, USER_ID_);
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(TENANT_ID_, GROUP_ID_);
-
-create index ACT_IDX_TENANT_MEMB on ACT_ID_TENANT_MEMBER(TENANT_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-create index ACT_IDX_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(USER_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(GROUP_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.21.0.sql
deleted file mode 100644
index 36a8270b..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/cockroachdb_identity_7.21.0.sql
+++ /dev/null
@@ -1,105 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ bytea,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_MEMB_GROUP on ACT_ID_MEMBERSHIP(GROUP_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create index ACT_IDX_MEMB_USER on ACT_ID_MEMBERSHIP(USER_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(TENANT_ID_, USER_ID_);
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(TENANT_ID_, GROUP_ID_);
-
-create index ACT_IDX_TENANT_MEMB on ACT_ID_TENANT_MEMBER(TENANT_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-create index ACT_IDX_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(USER_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(GROUP_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.20.0.sql
deleted file mode 100644
index 48a3e6ef..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.20.0.sql
+++ /dev/null
@@ -1,1412 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64) not null,
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64) not null,
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ BLOB,
- GENERATED_ smallint check(GENERATED_ in (1,0)),
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64) not null,
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64) not null,
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ smallint check(IS_ACTIVE_ in (1,0)),
- IS_CONCURRENT_ smallint check(IS_CONCURRENT_ in (1,0)),
- IS_SCOPE_ smallint check(IS_SCOPE_ in (1,0)),
- IS_EVENT_SCOPE_ smallint check(IS_EVENT_SCOPE_ in (1,0)),
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ smallint check(EXCLUSIVE_ in (1,0)),
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint default 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer not null default 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint not null default 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) not null,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ smallint check(HAS_START_FORM_KEY_ in (1,0)),
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ smallint default 1 NOT NULL check(STARTABLE_ in (1,0)),
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64) not null,
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- LAST_UPDATED_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64) not null,
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64) not null,
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ smallint check(IS_CONCURRENT_LOCAL_ in (1,0)),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_),
- UNI_USER_ID_ varchar (255) not null generated always as (case when "USER_ID_" is null then "ID_" else "USER_ID_" end),
- UNI_GROUP_ID_ varchar (255) not null generated always as (case when "GROUP_ID_" is null then "ID_" else "GROUP_ID_" end),
- UNI_RESOURCE_ID_ varchar (255) not null generated always as (case when "RESOURCE_ID_" is null then "ID_" else "RESOURCE_ID_" end)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ CLOB not null,
- PROPERTIES_ CLOB,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint not null default 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXECUTION_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC ON ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID ON ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID ON ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION(TYPE_,UNI_USER_ID_,RESOURCE_TYPE_,UNI_RESOURCE_ID_);
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION(TYPE_,UNI_GROUP_ID_,RESOURCE_TYPE_,UNI_RESOURCE_ID_);
-create unique index ACT_UNIQ_VARIABLE on ACT_RU_VARIABLE(VAR_SCOPE_,NAME_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INCIDENT_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-create index ACT_IDX_EXECUTION_PROC on ACT_RU_EXECUTION(PROC_DEF_ID_);
-create index ACT_IDX_EXECUTION_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-create index ACT_IDX_EXECUTION_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-create index ACT_IDX_EXECUTION_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-create index ACT_IDX_EVENT_SUBSCR_EXEC on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-create index ACT_IDX_BA_DEPLOYMENT on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-create index ACT_IDX_IDENT_LNK_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_INCIDENT_EXEC on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INCIDENT_PROCINST on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INCIDENT_PROC_DEF_ID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INCIDENT_CAUSE on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INCIDENT_ROOT_CAUSE on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
-create index ACT_IDX_JOB_EXCEPTION_STACK on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-create index ACT_IDX_VARIABLE_BA on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-create index ACT_IDX_VARIABLE_EXEC on ACT_RU_VARIABLE(EXECUTION_ID_);
-create index ACT_IDX_VARIABLE_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-create index ACT_IDX_TASK_PROC_DEF_ID on ACT_RU_TASK(PROC_DEF_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) not null,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ smallint check(REQUIRED_ in (1,0)),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) not null,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ smallint check(SATISFIED_ in (1,0)),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- https://app.camunda.com/jira/browse/CAM-9165
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-create index ACT_IDX_CASE_EXEC_CASE on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-create index ACT_IDX_CASE_EXEC_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-create index ACT_IDX_VARIABLE_CASE_EXEC on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-create index ACT_IDX_VARIABLE_CASE_INST on ACT_RU_VARIABLE(CASE_INST_ID_);
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-
--- add indexes for ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_)
-);
-
-alter table ACT_HI_PROCINST add constraint PROC_INST_ID_ unique(PROC_INST_ID_);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(255),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ smallint check(INITIAL_ in (1,0)),
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ BLOB,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint not null default 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_HI_CASEINST add constraint CASE_INST_ID_ unique(CASE_INST_ID_);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ smallint check(REQUIRED_ in (1,0)),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.22.0.sql
index 9d0abb45..7a7ea75e 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
);
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64) not null,
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ varchar(64),
CREATE_TIME_ timestamp,
LAST_FAILURE_LOG_ID_ varchar(64),
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ timestamp,
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(64),
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -834,6 +833,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(64),
STATE_ varchar(255),
+ RESTARTED_PROC_INST_ID_ varchar(64),
primary key (ID_)
);
@@ -891,6 +891,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ timestamp,
TENANT_ID_ varchar(64),
REMOVAL_TIME_ timestamp,
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -1086,6 +1087,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ varchar(64),
HOSTNAME_ varchar(255),
REMOVAL_TIME_ timestamp,
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -1138,6 +1140,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.21.0.sql
deleted file mode 100644
index 50060a10..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.21.0.sql
+++ /dev/null
@@ -1,101 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64) not null,
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64) not null,
- GROUP_ID_ varchar(64) not null,
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64) not null,
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ BLOB,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64) not null,
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_),
- UNI_USER_ID_ varchar (255) not null generated always as (case when "USER_ID_" is null then "ID_" else "USER_ID_" end),
- UNI_GROUP_ID_ varchar (255) not null generated always as (case when "GROUP_ID_" is null then "ID_" else "GROUP_ID_" end)
-);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(TENANT_ID_,UNI_USER_ID_);
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(TENANT_ID_,UNI_GROUP_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/db2_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.20.0.sql
deleted file mode 100644
index 1406dd50..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.20.0.sql
+++ /dev/null
@@ -1,1386 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ blob,
- GENERATED_ bit,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- IS_ACTIVE_ bit,
- IS_CONCURRENT_ bit,
- IS_SCOPE_ bit,
- IS_EVENT_SCOPE_ bit,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ integer,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ bit,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- LAST_UPDATED_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64) not null,
- SEQUENCE_COUNTER_ integer,
- IS_CONCURRENT_LOCAL_ bit,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ CLOB not null,
- PROPERTIES_ CLOB,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ long,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ long,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_,HANDLER_CFG_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC ON ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID ON ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID ON ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF;
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY;
-
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY;
-
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION;
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_USER
- unique (TYPE_, USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_GROUP
- unique (TYPE_, GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_UNIQ_VARIABLE
- unique (VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ bit,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ bit,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF;
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION;
-
--- create foreign key constraints on ACT_RU_TASK --
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF;
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION;
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ integer,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- TIME_ timestamp not null,
- NAME_ varchar(255) NOT null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- VAR_TYPE_ varchar(255),
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ integer,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ boolean,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ longvarbinary,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint not null default 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ integer,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ bit,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.22.0.sql
index 04a3d797..cf0f0163 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
);
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ varchar(64),
CREATE_TIME_ timestamp,
LAST_FAILURE_LOG_ID_ varchar(64),
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ timestamp,
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(64),
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -810,6 +809,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(64),
STATE_ varchar(255),
+ RESTARTED_PROC_INST_ID_ varchar(64),
primary key (ID_),
unique (PROC_INST_ID_)
);
@@ -866,6 +866,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ timestamp,
TENANT_ID_ varchar(64),
REMOVAL_TIME_ timestamp,
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -1061,6 +1062,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ varchar(64),
HOSTNAME_ varchar(255),
REMOVAL_TIME_ timestamp,
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -1113,6 +1115,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.21.0.sql
deleted file mode 100644
index 567ea227..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.21.0.sql
+++ /dev/null
@@ -1,104 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ longvarbinary,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_USER
- unique (TENANT_ID_, USER_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_GROUP
- unique (TENANT_ID_, GROUP_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT;
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/h2_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.20.0.sql
deleted file mode 100644
index b07bdf83..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.20.0.sql
+++ /dev/null
@@ -1,1390 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ LONGBLOB,
- GENERATED_ TINYINT,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ datetime(3),
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ datetime(3),
- VERSION_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ datetime(3),
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ TINYINT,
- IS_CONCURRENT_ TINYINT,
- IS_SCOPE_ TINYINT,
- IS_EVENT_SCOPE_ TINYINT,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ datetime(3) NULL,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ datetime(3) NULL,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime(3),
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ TINYINT,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ datetime(3),
- LAST_UPDATED_ datetime(3),
- DUE_DATE_ datetime(3),
- FOLLOW_UP_DATE_ datetime(3),
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64) not null,
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ TINYINT,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ datetime(3) not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ datetime(3) not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ datetime(3),
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ LONGTEXT not null,
- PROPERTIES_ LONGTEXT,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ datetime(3),
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ datetime(3) NULL,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ datetime(3),
- EXEC_START_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
--- this index needs to be limited in mariadb see CAM-6938
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_(100),HANDLER_CFG_(155));
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID ON ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_USER
- unique (USER_ID_,TYPE_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_GROUP
- unique (GROUP_ID_,TYPE_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_UNIQ_VARIABLE
- unique (VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create case execution table --
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- https://app.camunda.com/jira/browse/CAM-9165
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ datetime(3) not null,
- END_TIME_ datetime(3),
- REMOVAL_TIME_ datetime(3),
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ datetime(3) not null,
- END_TIME_ datetime(3),
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ datetime(3) not null,
- END_TIME_ datetime(3),
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ datetime(3),
- FOLLOW_UP_DATE_ datetime(3),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ datetime(3),
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(255),
- REV_ integer,
- TIME_ datetime(3) not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- INITIAL_ boolean,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp(3) not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ datetime(3) not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ LONGBLOB,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime(3),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp(3) not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp(3) not null,
- END_TIME_ timestamp(3) null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ datetime(3) not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ datetime(3) NULL,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ datetime(3) not null,
- END_TIME_ datetime(3),
- REMOVAL_TIME_ datetime(3),
- EXEC_START_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp(3) not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ datetime(3) not null,
- CLOSE_TIME_ datetime(3),
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ datetime(3) not null,
- END_TIME_ datetime(3),
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_CASEINST on ACT_HI_CASEACTINST(CASE_INST_ID_, CASE_ACT_ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ datetime(3) not null,
- REMOVAL_TIME_ datetime(3),
- COLLECT_VALUE_ double,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime(3),
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime(3),
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime(3),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.22.0.sql
index 3a76e8e3..1ca6771f 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ varchar(64),
CREATE_TIME_ datetime(3),
LAST_FAILURE_LOG_ID_ varchar(64),
+ BATCH_ID_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ datetime(3),
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(64),
+ TASK_STATE_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -812,6 +811,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(64),
STATE_ varchar(255),
+ RESTARTED_PROC_INST_ID_ varchar(64),
primary key (ID_),
unique (PROC_INST_ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -868,6 +868,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ datetime(3),
TENANT_ID_ varchar(64),
REMOVAL_TIME_ datetime(3),
+ TASK_STATE_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -1063,6 +1064,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ varchar(64),
HOSTNAME_ varchar(255),
REMOVAL_TIME_ datetime(3),
+ BATCH_ID_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -1115,6 +1117,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.21.0.sql
deleted file mode 100644
index dded0b4b..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.21.0.sql
+++ /dev/null
@@ -1,104 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ datetime(3) NULL,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ LONGBLOB,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_USER
- unique (TENANT_ID_, USER_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_GROUP
- unique (TENANT_ID_, GROUP_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mariadb_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.20.0.sql
deleted file mode 100644
index cc60cae3..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.20.0.sql
+++ /dev/null
@@ -1,1402 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ nvarchar(64),
- VALUE_ nvarchar(300),
- REV_ int,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ nvarchar(64),
- REV_ int,
- NAME_ nvarchar(255),
- DEPLOYMENT_ID_ nvarchar(64),
- BYTES_ image,
- GENERATED_ tinyint,
- TENANT_ID_ nvarchar(64),
- TYPE_ integer,
- CREATE_TIME_ datetime2,
- ROOT_PROC_INST_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ nvarchar(64),
- TIMESTAMP_ datetime2,
- VERSION_ nvarchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ nvarchar(64),
- NAME_ nvarchar(255),
- DEPLOY_TIME_ datetime2,
- SOURCE_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ nvarchar(64),
- REV_ int,
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- BUSINESS_KEY_ nvarchar(255),
- PARENT_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- SUPER_EXEC_ nvarchar(64),
- SUPER_CASE_EXEC_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- ACT_ID_ nvarchar(255),
- ACT_INST_ID_ nvarchar(64),
- IS_ACTIVE_ tinyint,
- IS_CONCURRENT_ tinyint,
- IS_SCOPE_ tinyint,
- IS_EVENT_SCOPE_ tinyint,
- SUSPENSION_STATE_ tinyint,
- CACHED_ENT_STATE_ int,
- SEQUENCE_COUNTER_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ nvarchar(64) NOT NULL,
- REV_ int,
- TYPE_ nvarchar(255) NOT NULL,
- LOCK_EXP_TIME_ datetime2,
- LOCK_OWNER_ nvarchar(255),
- EXCLUSIVE_ bit,
- EXECUTION_ID_ nvarchar(64),
- PROCESS_INSTANCE_ID_ nvarchar(64),
- PROCESS_DEF_ID_ nvarchar(64),
- PROCESS_DEF_KEY_ nvarchar(255),
- RETRIES_ int,
- EXCEPTION_STACK_ID_ nvarchar(64),
- EXCEPTION_MSG_ nvarchar(4000),
- FAILED_ACT_ID_ nvarchar(255),
- DUEDATE_ datetime2 NULL,
- REPEAT_ nvarchar(255),
- REPEAT_OFFSET_ numeric(19,0) DEFAULT 0,
- HANDLER_TYPE_ nvarchar(255),
- HANDLER_CFG_ nvarchar(4000),
- DEPLOYMENT_ID_ nvarchar(64),
- SUSPENSION_STATE_ tinyint NOT NULL DEFAULT 1,
- PRIORITY_ numeric(19,0) NOT NULL DEFAULT 0,
- JOB_DEF_ID_ nvarchar(64),
- SEQUENCE_COUNTER_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- CREATE_TIME_ datetime2,
- LAST_FAILURE_LOG_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ nvarchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- ACT_ID_ nvarchar(255),
- JOB_TYPE_ nvarchar(255) NOT NULL,
- JOB_CONFIGURATION_ nvarchar(255),
- SUSPENSION_STATE_ tinyint,
- JOB_PRIORITY_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- DEPLOYMENT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ nvarchar(64) not null,
- REV_ int,
- CATEGORY_ nvarchar(255),
- NAME_ nvarchar(255),
- KEY_ nvarchar(255) not null,
- VERSION_ int not null,
- DEPLOYMENT_ID_ nvarchar(64),
- RESOURCE_NAME_ nvarchar(4000),
- DGRM_RESOURCE_NAME_ nvarchar(4000),
- HAS_START_FORM_KEY_ tinyint,
- SUSPENSION_STATE_ tinyint,
- TENANT_ID_ nvarchar(64),
- VERSION_TAG_ nvarchar(64),
- HISTORY_TTL_ int,
- STARTABLE_ bit NOT NULL default 1,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ nvarchar(64) not null,
- REV_ int,
- KEY_ nvarchar(255) not null,
- VERSION_ int not null,
- DEPLOYMENT_ID_ nvarchar(64),
- RESOURCE_NAME_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ nvarchar(64),
- REV_ int,
- EXECUTION_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- CASE_DEF_ID_ nvarchar(64),
- NAME_ nvarchar(255),
- PARENT_TASK_ID_ nvarchar(64),
- DESCRIPTION_ nvarchar(4000),
- TASK_DEF_KEY_ nvarchar(255),
- OWNER_ nvarchar(255),
- ASSIGNEE_ nvarchar(255),
- DELEGATION_ nvarchar(64),
- PRIORITY_ int,
- CREATE_TIME_ datetime2,
- LAST_UPDATED_ datetime2,
- DUE_DATE_ datetime2,
- FOLLOW_UP_DATE_ datetime2,
- SUSPENSION_STATE_ int,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ nvarchar(64),
- REV_ int,
- GROUP_ID_ nvarchar(255),
- TYPE_ nvarchar(255),
- USER_ID_ nvarchar(255),
- TASK_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ nvarchar(64) not null,
- REV_ int,
- TYPE_ nvarchar(255) not null,
- NAME_ nvarchar(255) not null,
- EXECUTION_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- TASK_ID_ nvarchar(64),
- BATCH_ID_ nvarchar(64),
- BYTEARRAY_ID_ nvarchar(64),
- DOUBLE_ double precision,
- LONG_ numeric(19,0),
- TEXT_ nvarchar(4000),
- TEXT2_ nvarchar(4000),
- VAR_SCOPE_ nvarchar(64) not null,
- SEQUENCE_COUNTER_ numeric(19,0),
- IS_CONCURRENT_LOCAL_ tinyint,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ nvarchar(64) not null,
- REV_ int,
- EVENT_TYPE_ nvarchar(255) not null,
- EVENT_NAME_ nvarchar(255),
- EXECUTION_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- ACTIVITY_ID_ nvarchar(255),
- CONFIGURATION_ nvarchar(255),
- CREATED_ datetime2 not null,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ nvarchar(64) not null,
- REV_ int not null,
- INCIDENT_TIMESTAMP_ datetime2 not null,
- INCIDENT_MSG_ nvarchar(4000),
- INCIDENT_TYPE_ nvarchar(255) not null,
- EXECUTION_ID_ nvarchar(64),
- ACTIVITY_ID_ nvarchar(255),
- FAILED_ACTIVITY_ID_ nvarchar(255),
- PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- CAUSE_INCIDENT_ID_ nvarchar(64),
- ROOT_CAUSE_INCIDENT_ID_ nvarchar(64),
- CONFIGURATION_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- JOB_DEF_ID_ nvarchar(64),
- ANNOTATION_ nvarchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ nvarchar(64) not null,
- REV_ int,
- TYPE_ int not null,
- GROUP_ID_ nvarchar(255),
- USER_ID_ nvarchar(255),
- RESOURCE_TYPE_ int not null,
- RESOURCE_ID_ nvarchar(255),
- PERMS_ int,
- REMOVAL_TIME_ datetime2,
- ROOT_PROC_INST_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ nvarchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ nvarchar(255) not null,
- NAME_ nvarchar(255) not null,
- OWNER_ nvarchar(255),
- QUERY_ nvarchar(max) not null,
- PROPERTIES_ nvarchar(max),
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ nvarchar(64) not null,
- NAME_ nvarchar(64) not null,
- REPORTER_ nvarchar(255),
- VALUE_ numeric(19,0),
- TIMESTAMP_ datetime2,
- MILLISECONDS_ numeric(19,0) DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ nvarchar(64) not null,
- ASSIGNEE_HASH_ numeric(19,0),
- TIMESTAMP_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ nvarchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ nvarchar(255),
- TOPIC_NAME_ nvarchar(255),
- RETRIES_ int,
- ERROR_MSG_ nvarchar(4000),
- ERROR_DETAILS_ID_ nvarchar(64),
- LOCK_EXP_TIME_ datetime2,
- SUSPENSION_STATE_ tinyint,
- EXECUTION_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- ACT_ID_ nvarchar(255),
- ACT_INST_ID_ nvarchar(64),
- TENANT_ID_ nvarchar(64),
- PRIORITY_ numeric(19,0) NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ nvarchar(64) not null,
- REV_ int not null,
- TYPE_ nvarchar(255),
- TOTAL_JOBS_ int,
- JOBS_CREATED_ int,
- JOBS_PER_SEED_ int,
- INVOCATIONS_PER_JOB_ int,
- SEED_JOB_DEF_ID_ nvarchar(64),
- BATCH_JOB_DEF_ID_ nvarchar(64),
- MONITOR_JOB_DEF_ID_ nvarchar(64),
- SUSPENSION_STATE_ tinyint,
- CONFIGURATION_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- CREATE_USER_ID_ nvarchar(255),
- START_TIME_ datetime2,
- EXEC_START_TIME_ datetime2,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION (TYPE_,USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_) where USER_ID_ is not null;
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION (TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_) where GROUP_ID_ is not null;
-create unique index ACT_UNIQ_VARIABLE on ACT_RU_VARIABLE(VAR_SCOPE_, NAME_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INCIDENT_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-create index ACT_IDX_EXECUTION_PROC on ACT_RU_EXECUTION(PROC_DEF_ID_);
-create index ACT_IDX_EXECUTION_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-create index ACT_IDX_EXECUTION_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-create index ACT_IDX_EXECUTION_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-create index ACT_IDX_EVENT_SUBSCR_EXEC on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-create index ACT_IDX_BA_DEPLOYMENT on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-create index ACT_IDX_IDENT_LNK_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_INCIDENT_EXEC on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INCIDENT_PROCINST on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INCIDENT_PROC_DEF_ID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INCIDENT_CAUSE on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INCIDENT_ROOT_CAUSE on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
-create index ACT_IDX_JOB_EXCEPTION_STACK on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-create index ACT_IDX_VARIABLE_BA on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-create index ACT_IDX_VARIABLE_EXEC on ACT_RU_VARIABLE(EXECUTION_ID_);
-create index ACT_IDX_VARIABLE_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-create index ACT_IDX_TASK_PROC_DEF_ID on ACT_RU_TASK(PROC_DEF_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-create table ACT_RE_CASE_DEF (
- ID_ nvarchar(64) not null,
- REV_ int,
- CATEGORY_ nvarchar(255),
- NAME_ nvarchar(255),
- KEY_ nvarchar(255) not null,
- VERSION_ int not null,
- DEPLOYMENT_ID_ nvarchar(64),
- RESOURCE_NAME_ nvarchar(4000),
- DGRM_RESOURCE_NAME_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- HISTORY_TTL_ int,
- primary key (ID_)
-);
-
--- create case execution table --
-create table ACT_RU_CASE_EXECUTION (
- ID_ nvarchar(64) NOT NULL,
- REV_ int,
- CASE_INST_ID_ nvarchar(64),
- SUPER_CASE_EXEC_ nvarchar(64),
- SUPER_EXEC_ nvarchar(64),
- BUSINESS_KEY_ nvarchar(255),
- PARENT_ID_ nvarchar(64),
- CASE_DEF_ID_ nvarchar(64),
- ACT_ID_ nvarchar(255),
- PREV_STATE_ int,
- CURRENT_STATE_ int,
- REQUIRED_ tinyint,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ nvarchar(64) NOT NULL,
- REV_ int,
- CASE_INST_ID_ nvarchar(64),
- CASE_EXEC_ID_ nvarchar(64),
- SENTRY_ID_ nvarchar(255),
- TYPE_ nvarchar(255),
- SOURCE_CASE_EXEC_ID_ nvarchar(64),
- STANDARD_EVENT_ nvarchar(255),
- SOURCE_ nvarchar(255),
- VARIABLE_EVENT_ nvarchar(255),
- VARIABLE_NAME_ nvarchar(255),
- SATISFIED_ tinyint,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- https://app.camunda.com/jira/browse/CAM-9165
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-create index ACT_IDX_CASE_EXEC_CASE on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-create index ACT_IDX_CASE_EXEC_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-create index ACT_IDX_VARIABLE_CASE_EXEC on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-create index ACT_IDX_VARIABLE_CASE_INST on ACT_RU_VARIABLE(CASE_INST_ID_);
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-
--- add indexes for ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ nvarchar(64) not null,
- REV_ int,
- CATEGORY_ nvarchar(255),
- NAME_ nvarchar(255),
- KEY_ nvarchar(255) not null,
- VERSION_ int not null,
- DEPLOYMENT_ID_ nvarchar(64),
- RESOURCE_NAME_ nvarchar(4000),
- DGRM_RESOURCE_NAME_ nvarchar(4000),
- DEC_REQ_ID_ nvarchar(64),
- DEC_REQ_KEY_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- HISTORY_TTL_ int,
- VERSION_TAG_ nvarchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ nvarchar(64) NOT NULL,
- REV_ int,
- CATEGORY_ nvarchar(255),
- NAME_ nvarchar(255),
- KEY_ nvarchar(255) NOT NULL,
- VERSION_ int NOT NULL,
- DEPLOYMENT_ID_ nvarchar(64),
- RESOURCE_NAME_ nvarchar(4000),
- DGRM_RESOURCE_NAME_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ nvarchar(64) not null,
- PROC_INST_ID_ nvarchar(64) not null,
- BUSINESS_KEY_ nvarchar(255),
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64) not null,
- START_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- REMOVAL_TIME_ datetime2,
- DURATION_ numeric(19,0),
- START_USER_ID_ nvarchar(255),
- START_ACT_ID_ nvarchar(255),
- END_ACT_ID_ nvarchar(255),
- SUPER_PROCESS_INSTANCE_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- SUPER_CASE_INSTANCE_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- DELETE_REASON_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- STATE_ nvarchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ nvarchar(64) not null,
- PARENT_ACT_INST_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64) not null,
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64) not null,
- EXECUTION_ID_ nvarchar(64) not null,
- ACT_ID_ nvarchar(255) not null,
- TASK_ID_ nvarchar(64),
- CALL_PROC_INST_ID_ nvarchar(64),
- CALL_CASE_INST_ID_ nvarchar(64),
- ACT_NAME_ nvarchar(255),
- ACT_TYPE_ nvarchar(255) not null,
- ASSIGNEE_ nvarchar(255),
- START_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- DURATION_ numeric(19,0),
- ACT_INST_STATE_ tinyint,
- SEQUENCE_COUNTER_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ nvarchar(64) not null,
- TASK_DEF_KEY_ nvarchar(255),
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- CASE_DEF_KEY_ nvarchar(255),
- CASE_DEF_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- ACT_INST_ID_ nvarchar(64),
- NAME_ nvarchar(255),
- PARENT_TASK_ID_ nvarchar(64),
- DESCRIPTION_ nvarchar(4000),
- OWNER_ nvarchar(255),
- ASSIGNEE_ nvarchar(255),
- START_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- DURATION_ numeric(19,0),
- DELETE_REASON_ nvarchar(4000),
- PRIORITY_ int,
- DUE_DATE_ datetime2,
- FOLLOW_UP_DATE_ datetime2,
- TENANT_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ nvarchar(64) not null,
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- CASE_DEF_KEY_ nvarchar(255),
- CASE_DEF_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- ACT_INST_ID_ nvarchar(64),
- TASK_ID_ nvarchar(64),
- NAME_ nvarchar(255) not null,
- VAR_TYPE_ nvarchar(100),
- CREATE_TIME_ datetime2,
- REV_ int,
- BYTEARRAY_ID_ nvarchar(64),
- DOUBLE_ double precision,
- LONG_ numeric(19,0),
- TEXT_ nvarchar(4000),
- TEXT2_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- STATE_ nvarchar(20),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ nvarchar(64) not null,
- TYPE_ nvarchar(255) not null,
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- CASE_DEF_KEY_ nvarchar(255),
- CASE_DEF_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- TASK_ID_ nvarchar(64),
- ACT_INST_ID_ nvarchar(64),
- VAR_INST_ID_ nvarchar(64),
- NAME_ nvarchar(255) not null,
- VAR_TYPE_ nvarchar(255),
- REV_ int,
- TIME_ datetime2 not null,
- BYTEARRAY_ID_ nvarchar(64),
- DOUBLE_ double precision,
- LONG_ numeric(19,0),
- TEXT_ nvarchar(4000),
- TEXT2_ nvarchar(4000),
- SEQUENCE_COUNTER_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- OPERATION_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- INITIAL_ bit,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ nvarchar(64) not null,
- TIMESTAMP_ datetime2 not null,
- TYPE_ nvarchar(255),
- USER_ID_ nvarchar(255),
- GROUP_ID_ nvarchar(255),
- TASK_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- OPERATION_TYPE_ nvarchar(64),
- ASSIGNER_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-create table ACT_HI_COMMENT (
- ID_ nvarchar(64) not null,
- TYPE_ nvarchar(255),
- TIME_ datetime2 not null,
- USER_ID_ nvarchar(255),
- TASK_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- ACTION_ nvarchar(255),
- MESSAGE_ nvarchar(4000),
- FULL_MSG_ image,
- TENANT_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ nvarchar(64) not null,
- REV_ integer,
- USER_ID_ nvarchar(255),
- NAME_ nvarchar(255),
- DESCRIPTION_ nvarchar(4000),
- TYPE_ nvarchar(255),
- TASK_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- URL_ nvarchar(4000),
- CONTENT_ID_ nvarchar(64),
- TENANT_ID_ nvarchar(64),
- CREATE_TIME_ datetime2,
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ nvarchar(64) not null,
- DEPLOYMENT_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- CASE_DEF_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- CASE_EXECUTION_ID_ nvarchar(64),
- TASK_ID_ nvarchar(64),
- JOB_ID_ nvarchar(64),
- JOB_DEF_ID_ nvarchar(64),
- BATCH_ID_ nvarchar(64),
- USER_ID_ nvarchar(255),
- TIMESTAMP_ datetime2 not null,
- OPERATION_TYPE_ nvarchar(64),
- OPERATION_ID_ nvarchar(64),
- ENTITY_TYPE_ nvarchar(30),
- PROPERTY_ nvarchar(64),
- ORG_VALUE_ nvarchar(4000),
- NEW_VALUE_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- CATEGORY_ nvarchar(64),
- EXTERNAL_TASK_ID_ nvarchar(64),
- ANNOTATION_ nvarchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ nvarchar(64) not null,
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- CREATE_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- INCIDENT_MSG_ nvarchar(4000),
- INCIDENT_TYPE_ nvarchar(255) not null,
- ACTIVITY_ID_ nvarchar(255),
- FAILED_ACTIVITY_ID_ nvarchar(255),
- CAUSE_INCIDENT_ID_ nvarchar(64),
- ROOT_CAUSE_INCIDENT_ID_ nvarchar(64),
- CONFIGURATION_ nvarchar(255),
- HISTORY_CONFIGURATION_ nvarchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ nvarchar(64),
- JOB_DEF_ID_ nvarchar(64),
- ANNOTATION_ nvarchar(4000),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ nvarchar(64) not null,
- TIMESTAMP_ datetime2 not null,
- JOB_ID_ nvarchar(64) not null,
- JOB_DUEDATE_ datetime2,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ numeric(19,0) NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ nvarchar(4000),
- JOB_EXCEPTION_STACK_ID_ nvarchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ nvarchar(64),
- JOB_DEF_TYPE_ nvarchar(255),
- JOB_DEF_CONFIGURATION_ nvarchar(255),
- ACT_ID_ nvarchar(255),
- FAILED_ACT_ID_ nvarchar(255),
- EXECUTION_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROCESS_INSTANCE_ID_ nvarchar(64),
- PROCESS_DEF_ID_ nvarchar(64),
- PROCESS_DEF_KEY_ nvarchar(255),
- DEPLOYMENT_ID_ nvarchar(64),
- SEQUENCE_COUNTER_ numeric(19,0),
- TENANT_ID_ nvarchar(64),
- HOSTNAME_ nvarchar(255),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ nvarchar(64) not null,
- TYPE_ nvarchar(255),
- TOTAL_JOBS_ int,
- JOBS_PER_SEED_ int,
- INVOCATIONS_PER_JOB_ int,
- SEED_JOB_DEF_ID_ nvarchar(64),
- MONITOR_JOB_DEF_ID_ nvarchar(64),
- BATCH_JOB_DEF_ID_ nvarchar(64),
- TENANT_ID_ nvarchar(64),
- CREATE_USER_ID_ nvarchar(255),
- START_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- REMOVAL_TIME_ datetime2,
- EXEC_START_TIME_ datetime2,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ nvarchar(64) not null,
- TIMESTAMP_ datetime2 not null,
- EXT_TASK_ID_ nvarchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ nvarchar(255),
- WORKER_ID_ nvarchar(255),
- PRIORITY_ numeric(19,0) NOT NULL DEFAULT 0,
- ERROR_MSG_ nvarchar(4000),
- ERROR_DETAILS_ID_ nvarchar(64),
- ACT_ID_ nvarchar(255),
- ACT_INST_ID_ nvarchar(64),
- EXECUTION_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- PROC_DEF_ID_ nvarchar(64),
- PROC_DEF_KEY_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- STATE_ integer,
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ nvarchar(64) not null,
- CASE_INST_ID_ nvarchar(64) not null,
- BUSINESS_KEY_ nvarchar(255),
- CASE_DEF_ID_ nvarchar(64) not null,
- CREATE_TIME_ datetime2 not null,
- CLOSE_TIME_ datetime2,
- DURATION_ numeric(19,0),
- STATE_ tinyint,
- CREATE_USER_ID_ nvarchar(255),
- SUPER_CASE_INSTANCE_ID_ nvarchar(64),
- SUPER_PROCESS_INSTANCE_ID_ nvarchar(64),
- TENANT_ID_ nvarchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ nvarchar(64) not null,
- PARENT_ACT_INST_ID_ nvarchar(64),
- CASE_DEF_ID_ nvarchar(64) not null,
- CASE_INST_ID_ nvarchar(64) not null,
- CASE_ACT_ID_ nvarchar(255) not null,
- TASK_ID_ nvarchar(64),
- CALL_PROC_INST_ID_ nvarchar(64),
- CALL_CASE_INST_ID_ nvarchar(64),
- CASE_ACT_NAME_ nvarchar(255),
- CASE_ACT_TYPE_ nvarchar(255),
- CREATE_TIME_ datetime2 not null,
- END_TIME_ datetime2,
- DURATION_ numeric(19,0),
- STATE_ tinyint,
- REQUIRED_ tinyint,
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ nvarchar(64) NOT NULL,
- DEC_DEF_ID_ nvarchar(64) NOT NULL,
- DEC_DEF_KEY_ nvarchar(255) NOT NULL,
- DEC_DEF_NAME_ nvarchar(255),
- PROC_DEF_KEY_ nvarchar(255),
- PROC_DEF_ID_ nvarchar(64),
- PROC_INST_ID_ nvarchar(64),
- CASE_DEF_KEY_ nvarchar(255),
- CASE_DEF_ID_ nvarchar(64),
- CASE_INST_ID_ nvarchar(64),
- ACT_INST_ID_ nvarchar(64),
- ACT_ID_ nvarchar(255),
- EVAL_TIME_ datetime2 not null,
- REMOVAL_TIME_ datetime2,
- COLLECT_VALUE_ double precision,
- USER_ID_ nvarchar(255),
- ROOT_DEC_INST_ID_ nvarchar(64),
- ROOT_PROC_INST_ID_ nvarchar(64),
- DEC_REQ_ID_ nvarchar(64),
- DEC_REQ_KEY_ nvarchar(255),
- TENANT_ID_ nvarchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ nvarchar(64) NOT NULL,
- DEC_INST_ID_ nvarchar(64) NOT NULL,
- CLAUSE_ID_ nvarchar(64),
- CLAUSE_NAME_ nvarchar(255),
- VAR_TYPE_ nvarchar(100),
- BYTEARRAY_ID_ nvarchar(64),
- DOUBLE_ double precision,
- LONG_ numeric(19,0),
- TEXT_ nvarchar(4000),
- TEXT2_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- CREATE_TIME_ datetime2,
- ROOT_PROC_INST_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ nvarchar(64) NOT NULL,
- DEC_INST_ID_ nvarchar(64) NOT NULL,
- CLAUSE_ID_ nvarchar(64),
- CLAUSE_NAME_ nvarchar(255),
- RULE_ID_ nvarchar(64),
- RULE_ORDER_ int,
- VAR_NAME_ nvarchar(255),
- VAR_TYPE_ nvarchar(100),
- BYTEARRAY_ID_ nvarchar(64),
- DOUBLE_ double precision,
- LONG_ numeric(19,0),
- TEXT_ nvarchar(4000),
- TEXT2_ nvarchar(4000),
- TENANT_ID_ nvarchar(64),
- CREATE_TIME_ datetime2,
- ROOT_PROC_INST_ID_ nvarchar(64),
- REMOVAL_TIME_ datetime2,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.22.0.sql
index ae7afeb5..86deafe5 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
);
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ nvarchar(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ nvarchar(64),
CREATE_TIME_ datetime2,
LAST_FAILURE_LOG_ID_ nvarchar(64),
+ BATCH_ID_ nvarchar(64),
primary key (ID_)
);
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ datetime2,
SUSPENSION_STATE_ int,
TENANT_ID_ nvarchar(64),
+ TASK_STATE_ nvarchar(64),
primary key (ID_)
);
@@ -828,6 +827,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ nvarchar(4000),
TENANT_ID_ nvarchar(64),
STATE_ nvarchar(255),
+ RESTARTED_PROC_INST_ID_ nvarchar(64),
primary key (ID_),
unique (PROC_INST_ID_)
);
@@ -884,6 +884,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ datetime2,
TENANT_ID_ nvarchar(64),
REMOVAL_TIME_ datetime2,
+ TASK_STATE_ nvarchar(64),
primary key (ID_)
);
@@ -1078,6 +1079,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ nvarchar(64),
HOSTNAME_ nvarchar(255),
REMOVAL_TIME_ datetime2,
+ BATCH_ID_ nvarchar(64),
primary key (ID_)
);
@@ -1130,6 +1132,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.21.0.sql
deleted file mode 100644
index 9b33364d..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.21.0.sql
+++ /dev/null
@@ -1,99 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ nvarchar(64),
- REV_ int,
- NAME_ nvarchar(255),
- TYPE_ nvarchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ nvarchar(64),
- GROUP_ID_ nvarchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ nvarchar(64),
- REV_ int,
- FIRST_ nvarchar(255),
- LAST_ nvarchar(255),
- EMAIL_ nvarchar(255),
- PWD_ nvarchar(255),
- SALT_ nvarchar(255),
- LOCK_EXP_TIME_ datetime2,
- ATTEMPTS_ int,
- PICTURE_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ nvarchar(64),
- REV_ int,
- USER_ID_ nvarchar(64),
- TYPE_ nvarchar(64),
- KEY_ nvarchar(255),
- VALUE_ nvarchar(255),
- PASSWORD_ image,
- PARENT_ID_ nvarchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ nvarchar(64),
- REV_ int,
- NAME_ nvarchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ nvarchar(64) not null,
- TENANT_ID_ nvarchar(64) not null,
- USER_ID_ nvarchar(64),
- GROUP_ID_ nvarchar(64),
- primary key (ID_)
-);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER (TENANT_ID_, USER_ID_) where USER_ID_ is not null;
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER (TENANT_ID_, GROUP_ID_) where GROUP_ID_ is not null;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mssql_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.20.0.sql
deleted file mode 100644
index 6b8a2833..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.20.0.sql
+++ /dev/null
@@ -1,1391 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ LONGBLOB,
- GENERATED_ TINYINT,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ datetime,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ datetime,
- VERSION_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ datetime,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ TINYINT,
- IS_CONCURRENT_ TINYINT,
- IS_SCOPE_ TINYINT,
- IS_EVENT_SCOPE_ TINYINT,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ datetime NULL,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ datetime NULL,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ TINYINT,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) not null,
- REV_ integer,
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ datetime,
- LAST_UPDATED_ datetime,
- DUE_DATE_ datetime,
- FOLLOW_UP_DATE_ datetime,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64) not null,
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ TINYINT,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ datetime not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ datetime not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ datetime,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ LONGTEXT not null,
- PROPERTIES_ LONGTEXT,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ datetime,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ datetime NULL,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ datetime,
- EXEC_START_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
--- this index needs to be limited in mysql see CAM-6938
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_(100),HANDLER_CFG_(155));
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_USER
- unique (USER_ID_,TYPE_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_GROUP
- unique (GROUP_ID_,TYPE_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_UNIQ_VARIABLE
- unique (VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create case execution table --
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- https://app.camunda.com/jira/browse/CAM-9165
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_) on delete cascade on update cascade;
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) not null,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) not null,
- VERSION_ integer not null,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
-
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ datetime not null,
- END_TIME_ datetime,
- REMOVAL_TIME_ datetime,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ datetime not null,
- END_TIME_ datetime,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ datetime not null,
- END_TIME_ datetime,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ datetime,
- FOLLOW_UP_DATE_ datetime,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ datetime,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(255),
- REV_ integer,
- TIME_ datetime not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- INITIAL_ boolean,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ datetime not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ LONGBLOB,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime,
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ datetime not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ datetime NULL,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ datetime not null,
- END_TIME_ datetime,
- REMOVAL_TIME_ datetime,
- EXEC_START_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REV_ integer,
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ datetime not null,
- CLOSE_TIME_ datetime,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ datetime not null,
- END_TIME_ datetime,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_CASEINST on ACT_HI_CASEACTINST(CASE_INST_ID_, CASE_ACT_ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ datetime not null,
- REMOVAL_TIME_ datetime,
- COLLECT_VALUE_ double,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ datetime,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ datetime,
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.22.0.sql
index ea3b8085..50dcd210 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ varchar(64),
CREATE_TIME_ datetime,
LAST_FAILURE_LOG_ID_ varchar(64),
+ BATCH_ID_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ datetime,
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(64),
+ TASK_STATE_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -813,6 +812,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(64),
STATE_ varchar(255),
+ RESTARTED_PROC_INST_ID_ varchar(64),
primary key (ID_),
unique (PROC_INST_ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -869,6 +869,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ datetime,
TENANT_ID_ varchar(64),
REMOVAL_TIME_ datetime,
+ TASK_STATE_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -1064,6 +1065,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ varchar(64),
HOSTNAME_ varchar(255),
REMOVAL_TIME_ datetime,
+ BATCH_ID_ varchar(64),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
@@ -1117,6 +1119,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.21.0.sql
deleted file mode 100644
index a5ea6736..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.21.0.sql
+++ /dev/null
@@ -1,104 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ datetime NULL,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ LONGBLOB,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_USER
- unique (TENANT_ID_, USER_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_GROUP
- unique (TENANT_ID_, GROUP_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/mysql_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.20.0.sql
deleted file mode 100644
index 1abbfe1a..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.20.0.sql
+++ /dev/null
@@ -1,1415 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ NVARCHAR2(64),
- VALUE_ NVARCHAR2(300),
- REV_ INTEGER,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- NAME_ NVARCHAR2(255),
- DEPLOYMENT_ID_ NVARCHAR2(64),
- BYTES_ BLOB,
- GENERATED_ NUMBER(1,0) CHECK (GENERATED_ IN (1,0)),
- TENANT_ID_ NVARCHAR2(64),
- TYPE_ INTEGER,
- CREATE_TIME_ TIMESTAMP(6),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ NVARCHAR2(64),
- TIMESTAMP_ TIMESTAMP(6),
- VERSION_ NVARCHAR2(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ NVARCHAR2(64),
- NAME_ NVARCHAR2(255),
- DEPLOY_TIME_ TIMESTAMP(6),
- SOURCE_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- BUSINESS_KEY_ NVARCHAR2(255),
- PARENT_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- SUPER_EXEC_ NVARCHAR2(64),
- SUPER_CASE_EXEC_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- ACT_ID_ NVARCHAR2(255),
- ACT_INST_ID_ NVARCHAR2(64),
- IS_ACTIVE_ NUMBER(1,0) CHECK (IS_ACTIVE_ IN (1,0)),
- IS_CONCURRENT_ NUMBER(1,0) CHECK (IS_CONCURRENT_ IN (1,0)),
- IS_SCOPE_ NUMBER(1,0) CHECK (IS_SCOPE_ IN (1,0)),
- IS_EVENT_SCOPE_ NUMBER(1,0) CHECK (IS_EVENT_SCOPE_ IN (1,0)),
- SUSPENSION_STATE_ INTEGER,
- CACHED_ENT_STATE_ INTEGER,
- SEQUENCE_COUNTER_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- TYPE_ NVARCHAR2(255) NOT NULL,
- LOCK_EXP_TIME_ TIMESTAMP(6),
- LOCK_OWNER_ NVARCHAR2(255),
- EXCLUSIVE_ NUMBER(1,0) CHECK (EXCLUSIVE_ IN (1,0)),
- EXECUTION_ID_ NVARCHAR2(64),
- PROCESS_INSTANCE_ID_ NVARCHAR2(64),
- PROCESS_DEF_ID_ NVARCHAR2(64),
- PROCESS_DEF_KEY_ NVARCHAR2(255),
- RETRIES_ INTEGER,
- EXCEPTION_STACK_ID_ NVARCHAR2(64),
- EXCEPTION_MSG_ NVARCHAR2(2000),
- FAILED_ACT_ID_ NVARCHAR2(255),
- DUEDATE_ TIMESTAMP(6),
- REPEAT_ NVARCHAR2(255),
- REPEAT_OFFSET_ NUMBER(19,0) DEFAULT 0,
- HANDLER_TYPE_ NVARCHAR2(255),
- HANDLER_CFG_ NVARCHAR2(2000),
- DEPLOYMENT_ID_ NVARCHAR2(64),
- SUSPENSION_STATE_ INTEGER DEFAULT 1 NOT NULL,
- JOB_DEF_ID_ NVARCHAR2(64),
- PRIORITY_ NUMBER(19,0) DEFAULT 0 NOT NULL,
- SEQUENCE_COUNTER_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_TIME_ TIMESTAMP(6),
- LAST_FAILURE_LOG_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- PROC_DEF_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- ACT_ID_ NVARCHAR2(255),
- JOB_TYPE_ NVARCHAR2(255) NOT NULL,
- JOB_CONFIGURATION_ NVARCHAR2(255),
- SUSPENSION_STATE_ INTEGER,
- JOB_PRIORITY_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- DEPLOYMENT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CATEGORY_ NVARCHAR2(255),
- NAME_ NVARCHAR2(255),
- KEY_ NVARCHAR2(255) NOT NULL,
- VERSION_ INTEGER NOT NULL,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- RESOURCE_NAME_ NVARCHAR2(2000),
- DGRM_RESOURCE_NAME_ NVARCHAR2(2000),
- HAS_START_FORM_KEY_ NUMBER(1,0) CHECK (HAS_START_FORM_KEY_ IN (1,0)),
- SUSPENSION_STATE_ INTEGER,
- TENANT_ID_ NVARCHAR2(64),
- VERSION_TAG_ NVARCHAR2(64),
- HISTORY_TTL_ integer,
- STARTABLE_ NUMBER(1,0) DEFAULT 1 NOT NULL CHECK (STARTABLE_ IN (1,0)),
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- KEY_ NVARCHAR2(255) NOT NULL,
- VERSION_ INTEGER NOT NULL,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- RESOURCE_NAME_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- EXECUTION_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_DEF_ID_ NVARCHAR2(64),
- NAME_ NVARCHAR2(255),
- PARENT_TASK_ID_ NVARCHAR2(64),
- DESCRIPTION_ NVARCHAR2(2000),
- TASK_DEF_KEY_ NVARCHAR2(255),
- OWNER_ NVARCHAR2(255),
- ASSIGNEE_ NVARCHAR2(255),
- DELEGATION_ NVARCHAR2(64),
- PRIORITY_ INTEGER,
- CREATE_TIME_ TIMESTAMP(6),
- LAST_UPDATED_ TIMESTAMP(6),
- DUE_DATE_ TIMESTAMP(6),
- FOLLOW_UP_DATE_ TIMESTAMP(6),
- SUSPENSION_STATE_ INTEGER,
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- GROUP_ID_ NVARCHAR2(255),
- TYPE_ NVARCHAR2(255),
- USER_ID_ NVARCHAR2(255),
- TASK_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ NVARCHAR2(64) not null,
- REV_ INTEGER,
- TYPE_ NVARCHAR2(255) not null,
- NAME_ NVARCHAR2(255) not null,
- EXECUTION_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- TASK_ID_ NVARCHAR2(64),
- BATCH_ID_ NVARCHAR2(64),
- BYTEARRAY_ID_ NVARCHAR2(64),
- DOUBLE_ NUMBER(*,10),
- LONG_ NUMBER(19,0),
- TEXT_ NVARCHAR2(2000),
- TEXT2_ NVARCHAR2(2000),
- VAR_SCOPE_ NVARCHAR2(64) not null,
- SEQUENCE_COUNTER_ NUMBER(19,0),
- IS_CONCURRENT_LOCAL_ NUMBER(1,0) CHECK (IS_CONCURRENT_LOCAL_ IN (1,0)),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ NVARCHAR2(64) not null,
- REV_ integer,
- EVENT_TYPE_ NVARCHAR2(255) not null,
- EVENT_NAME_ NVARCHAR2(255),
- EXECUTION_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- ACTIVITY_ID_ NVARCHAR2(255),
- CONFIGURATION_ NVARCHAR2(255),
- CREATED_ TIMESTAMP(6) not null,
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ NVARCHAR2(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ TIMESTAMP(6) not null,
- INCIDENT_MSG_ NVARCHAR2(2000),
- INCIDENT_TYPE_ NVARCHAR2(255) not null,
- EXECUTION_ID_ NVARCHAR2(64),
- ACTIVITY_ID_ NVARCHAR2(255),
- FAILED_ACTIVITY_ID_ NVARCHAR2(255),
- PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- CAUSE_INCIDENT_ID_ NVARCHAR2(64),
- ROOT_CAUSE_INCIDENT_ID_ NVARCHAR2(64),
- CONFIGURATION_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- JOB_DEF_ID_ NVARCHAR2(64),
- ANNOTATION_ NVARCHAR2(2000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ NVARCHAR2(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ NVARCHAR2(255),
- USER_ID_ NVARCHAR2(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ NVARCHAR2(255),
- PERMS_ integer,
- REMOVAL_TIME_ TIMESTAMP(6),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ NVARCHAR2(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ NVARCHAR2(255) not null,
- NAME_ NVARCHAR2(255) not null,
- OWNER_ NVARCHAR2(255),
- QUERY_ NCLOB not null,
- PROPERTIES_ NCLOB,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ NVARCHAR2(64) not null,
- NAME_ NVARCHAR2(64) not null,
- REPORTER_ NVARCHAR2(255),
- VALUE_ NUMBER(19,0),
- TIMESTAMP_ TIMESTAMP(6),
- MILLISECONDS_ NUMBER(19,0) DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ NVARCHAR2(64) not null,
- ASSIGNEE_HASH_ NUMBER(19,0),
- TIMESTAMP_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ NVARCHAR2(64) not null,
- REV_ integer not null,
- WORKER_ID_ NVARCHAR2(255),
- TOPIC_NAME_ NVARCHAR2(255),
- RETRIES_ INTEGER,
- ERROR_MSG_ NVARCHAR2(2000),
- ERROR_DETAILS_ID_ NVARCHAR2(64),
- LOCK_EXP_TIME_ TIMESTAMP(6),
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- ACT_ID_ NVARCHAR2(255),
- ACT_INST_ID_ NVARCHAR2(64),
- TENANT_ID_ NVARCHAR2(64),
- PRIORITY_ NUMBER(19,0) DEFAULT 0 NOT NULL,
- LAST_FAILURE_LOG_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER NOT NULL,
- TYPE_ NVARCHAR2(255),
- TOTAL_JOBS_ INTEGER,
- JOBS_CREATED_ INTEGER,
- JOBS_PER_SEED_ INTEGER,
- INVOCATIONS_PER_JOB_ INTEGER,
- SEED_JOB_DEF_ID_ NVARCHAR2(64),
- BATCH_JOB_DEF_ID_ NVARCHAR2(64),
- MONITOR_JOB_DEF_ID_ NVARCHAR2(64),
- SUSPENSION_STATE_ INTEGER,
- CONFIGURATION_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_USER_ID_ NVARCHAR2(255),
- START_TIME_ TIMESTAMP(6),
- EXEC_START_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create index ACT_IDX_EXE_ROOT_PROCINST on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_, 0);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_, 0);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_, 0);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_, 0);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYP on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_, 0);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_, SUBSTR(HANDLER_CFG_, 1, 1850));
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_, 0);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_, 0);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_, 0);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
--- see http://stackoverflow.com/questions/675398/how-can-i-constrain-multiple-columns-to-prevent-duplicates-but-ignore-null-value
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION
- (case when USER_ID_ is null then null else TYPE_ end,
- case when USER_ID_ is null then null else RESOURCE_TYPE_ end,
- case when USER_ID_ is null then null else RESOURCE_ID_ end,
- case when USER_ID_ is null then null else USER_ID_ end);
-
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION
- (case when GROUP_ID_ is null then null else TYPE_ end,
- case when GROUP_ID_ is null then null else RESOURCE_TYPE_ end,
- case when GROUP_ID_ is null then null else RESOURCE_ID_ end,
- case when GROUP_ID_ is null then null else GROUP_ID_ end);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_UNIQ_VARIABLE
- unique (VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_, 0);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_, 0);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CATEGORY_ NVARCHAR2(255),
- NAME_ NVARCHAR2(255),
- KEY_ NVARCHAR2(255) NOT NULL,
- VERSION_ INTEGER NOT NULL,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- RESOURCE_NAME_ NVARCHAR2(2000),
- DGRM_RESOURCE_NAME_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- HISTORY_TTL_ INTEGER,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CASE_INST_ID_ NVARCHAR2(64),
- SUPER_CASE_EXEC_ NVARCHAR2(64),
- SUPER_EXEC_ NVARCHAR2(64),
- BUSINESS_KEY_ NVARCHAR2(255),
- PARENT_ID_ NVARCHAR2(64),
- CASE_DEF_ID_ NVARCHAR2(64),
- ACT_ID_ NVARCHAR2(255),
- PREV_STATE_ INTEGER,
- CURRENT_STATE_ INTEGER,
- REQUIRED_ NUMBER(1,0) CHECK (REQUIRED_ IN (1,0)),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_EXEC_ID_ NVARCHAR2(64),
- SENTRY_ID_ NVARCHAR2(255),
- TYPE_ NVARCHAR2(255),
- SOURCE_CASE_EXEC_ID_ NVARCHAR2(64),
- STANDARD_EVENT_ NVARCHAR2(255),
- SOURCE_ NVARCHAR2(255),
- VARIABLE_EVENT_ NVARCHAR2(255),
- VARIABLE_NAME_ NVARCHAR2(255),
- SATISFIED_ NUMBER(1,0) CHECK (SATISFIED_ IN (1,0)),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_CASE_DEF on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-create index ACT_IDX_VAR_CASE_EXE on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_CASE_INST_ID on ACT_RU_VARIABLE(CASE_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_, 0);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_, 0);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CATEGORY_ NVARCHAR2(255),
- NAME_ NVARCHAR2(255),
- KEY_ NVARCHAR2(255) NOT NULL,
- VERSION_ INTEGER NOT NULL,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- RESOURCE_NAME_ NVARCHAR2(2000),
- DGRM_RESOURCE_NAME_ NVARCHAR2(2000),
- DEC_REQ_ID_ NVARCHAR2(64),
- DEC_REQ_KEY_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ NVARCHAR2(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ NVARCHAR2(64) NOT NULL,
- REV_ INTEGER,
- CATEGORY_ NVARCHAR2(255),
- NAME_ NVARCHAR2(255),
- KEY_ NVARCHAR2(255) NOT NULL,
- VERSION_ INTEGER NOT NULL,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- RESOURCE_NAME_ NVARCHAR2(2000),
- DGRM_RESOURCE_NAME_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_, 0);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_, 0);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ NVARCHAR2(64) not null,
- PROC_INST_ID_ NVARCHAR2(64) not null,
- BUSINESS_KEY_ NVARCHAR2(255),
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64) not null,
- START_TIME_ TIMESTAMP(6) not null,
- END_TIME_ TIMESTAMP(6),
- REMOVAL_TIME_ TIMESTAMP(6),
- DURATION_ NUMBER(19,0),
- START_USER_ID_ NVARCHAR2(255),
- START_ACT_ID_ NVARCHAR2(255),
- END_ACT_ID_ NVARCHAR2(255),
- SUPER_PROCESS_INSTANCE_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- SUPER_CASE_INSTANCE_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- DELETE_REASON_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- STATE_ NVARCHAR2(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ NVARCHAR2(64) not null,
- PARENT_ACT_INST_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64) not null,
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64) not null,
- EXECUTION_ID_ NVARCHAR2(64) not null,
- ACT_ID_ NVARCHAR2(255) not null,
- TASK_ID_ NVARCHAR2(64),
- CALL_PROC_INST_ID_ NVARCHAR2(64),
- CALL_CASE_INST_ID_ NVARCHAR2(64),
- ACT_NAME_ NVARCHAR2(255),
- ACT_TYPE_ NVARCHAR2(255) not null,
- ASSIGNEE_ NVARCHAR2(255),
- START_TIME_ TIMESTAMP(6) not null,
- END_TIME_ TIMESTAMP(6),
- DURATION_ NUMBER(19,0),
- ACT_INST_STATE_ INTEGER,
- SEQUENCE_COUNTER_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ NVARCHAR2(64) not null,
- TASK_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- CASE_DEF_KEY_ NVARCHAR2(255),
- CASE_DEF_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- ACT_INST_ID_ NVARCHAR2(64),
- PARENT_TASK_ID_ NVARCHAR2(64),
- NAME_ NVARCHAR2(255),
- DESCRIPTION_ NVARCHAR2(2000),
- OWNER_ NVARCHAR2(255),
- ASSIGNEE_ NVARCHAR2(255),
- START_TIME_ TIMESTAMP(6) not null,
- END_TIME_ TIMESTAMP(6),
- DURATION_ NUMBER(19,0),
- DELETE_REASON_ NVARCHAR2(2000),
- PRIORITY_ INTEGER,
- DUE_DATE_ TIMESTAMP(6),
- FOLLOW_UP_DATE_ TIMESTAMP(6),
- TENANT_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ NVARCHAR2(64) not null,
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- ACT_INST_ID_ NVARCHAR2(64),
- CASE_DEF_KEY_ NVARCHAR2(255),
- CASE_DEF_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- TASK_ID_ NVARCHAR2(64),
- NAME_ NVARCHAR2(255) not null,
- VAR_TYPE_ NVARCHAR2(100),
- CREATE_TIME_ TIMESTAMP(6),
- REV_ INTEGER,
- BYTEARRAY_ID_ NVARCHAR2(64),
- DOUBLE_ NUMBER(*,10),
- LONG_ NUMBER(19,0),
- TEXT_ NVARCHAR2(2000),
- TEXT2_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- STATE_ NVARCHAR2(20),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ NVARCHAR2(64) not null,
- TYPE_ NVARCHAR2(255) not null,
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- CASE_DEF_KEY_ NVARCHAR2(255),
- CASE_DEF_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- TASK_ID_ NVARCHAR2(64),
- ACT_INST_ID_ NVARCHAR2(64),
- VAR_INST_ID_ NVARCHAR2(64),
- NAME_ NVARCHAR2(255) not null,
- VAR_TYPE_ NVARCHAR2(64),
- REV_ INTEGER,
- TIME_ TIMESTAMP(6) not null,
- BYTEARRAY_ID_ NVARCHAR2(64),
- DOUBLE_ NUMBER(*,10),
- LONG_ NUMBER(19,0),
- TEXT_ NVARCHAR2(2000),
- TEXT2_ NVARCHAR2(2000),
- SEQUENCE_COUNTER_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- OPERATION_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- INITIAL_ NUMBER(1,0) CHECK (INITIAL_ IN (1,0)),
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ NVARCHAR2(64) not null,
- TIMESTAMP_ TIMESTAMP(6) not null,
- TYPE_ NVARCHAR2(255),
- USER_ID_ NVARCHAR2(255),
- GROUP_ID_ NVARCHAR2(255),
- TASK_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- OPERATION_TYPE_ NVARCHAR2(64),
- ASSIGNER_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ NVARCHAR2(64) not null,
- TYPE_ NVARCHAR2(255),
- TIME_ TIMESTAMP(6) not null,
- USER_ID_ NVARCHAR2(255),
- TASK_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- ACTION_ NVARCHAR2(255),
- MESSAGE_ NVARCHAR2(2000),
- FULL_MSG_ BLOB,
- TENANT_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ NVARCHAR2(64) not null,
- REV_ INTEGER,
- USER_ID_ NVARCHAR2(255),
- NAME_ NVARCHAR2(255),
- DESCRIPTION_ NVARCHAR2(2000),
- TYPE_ NVARCHAR2(255),
- TASK_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- URL_ NVARCHAR2(2000),
- CONTENT_ID_ NVARCHAR2(64),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_TIME_ TIMESTAMP(6),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ NVARCHAR2(64) not null,
- DEPLOYMENT_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- CASE_DEF_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- CASE_EXECUTION_ID_ NVARCHAR2(64),
- TASK_ID_ NVARCHAR2(64),
- JOB_ID_ NVARCHAR2(64),
- JOB_DEF_ID_ NVARCHAR2(64),
- BATCH_ID_ NVARCHAR2(64),
- USER_ID_ NVARCHAR2(255),
- TIMESTAMP_ TIMESTAMP(6) not null,
- OPERATION_TYPE_ NVARCHAR2(255),
- OPERATION_ID_ NVARCHAR2(64),
- ENTITY_TYPE_ NVARCHAR2(30),
- PROPERTY_ NVARCHAR2(64),
- ORG_VALUE_ NVARCHAR2(2000),
- NEW_VALUE_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- CATEGORY_ NVARCHAR2(64),
- EXTERNAL_TASK_ID_ NVARCHAR2(64),
- ANNOTATION_ NVARCHAR2(2000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ NVARCHAR2(64) not null,
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- CREATE_TIME_ TIMESTAMP(6) not null,
- END_TIME_ TIMESTAMP(6),
- INCIDENT_MSG_ NVARCHAR2(2000),
- INCIDENT_TYPE_ NVARCHAR2(255) not null,
- ACTIVITY_ID_ NVARCHAR2(255),
- FAILED_ACTIVITY_ID_ NVARCHAR2(255),
- CAUSE_INCIDENT_ID_ NVARCHAR2(64),
- ROOT_CAUSE_INCIDENT_ID_ NVARCHAR2(64),
- CONFIGURATION_ NVARCHAR2(255),
- HISTORY_CONFIGURATION_ NVARCHAR2(255),
- INCIDENT_STATE_ INTEGER,
- TENANT_ID_ NVARCHAR2(64),
- JOB_DEF_ID_ NVARCHAR2(64),
- ANNOTATION_ NVARCHAR2(2000),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ NVARCHAR2(64) not null,
- TIMESTAMP_ TIMESTAMP(6) not null,
- JOB_ID_ NVARCHAR2(64) not null,
- JOB_DUEDATE_ TIMESTAMP(6),
- JOB_RETRIES_ INTEGER,
- JOB_PRIORITY_ NUMBER(19,0) DEFAULT 0 NOT NULL,
- JOB_EXCEPTION_MSG_ NVARCHAR2(2000),
- JOB_EXCEPTION_STACK_ID_ NVARCHAR2(64),
- JOB_STATE_ INTEGER,
- JOB_DEF_ID_ NVARCHAR2(64),
- JOB_DEF_TYPE_ NVARCHAR2(255),
- JOB_DEF_CONFIGURATION_ NVARCHAR2(255),
- ACT_ID_ NVARCHAR2(255),
- FAILED_ACT_ID_ NVARCHAR2(255),
- EXECUTION_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROCESS_INSTANCE_ID_ NVARCHAR2(64),
- PROCESS_DEF_ID_ NVARCHAR2(64),
- PROCESS_DEF_KEY_ NVARCHAR2(255),
- DEPLOYMENT_ID_ NVARCHAR2(64),
- SEQUENCE_COUNTER_ NUMBER(19,0),
- TENANT_ID_ NVARCHAR2(64),
- HOSTNAME_ NVARCHAR2(255),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ NVARCHAR2(64) not null,
- TYPE_ NVARCHAR2(255),
- TOTAL_JOBS_ INTEGER,
- JOBS_PER_SEED_ INTEGER,
- INVOCATIONS_PER_JOB_ INTEGER,
- SEED_JOB_DEF_ID_ NVARCHAR2(64),
- MONITOR_JOB_DEF_ID_ NVARCHAR2(64),
- BATCH_JOB_DEF_ID_ NVARCHAR2(64),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_USER_ID_ NVARCHAR2(255),
- START_TIME_ TIMESTAMP(6) NOT NULL,
- END_TIME_ TIMESTAMP(6),
- REMOVAL_TIME_ TIMESTAMP(6),
- EXEC_START_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ NVARCHAR2(64) not null,
- TIMESTAMP_ TIMESTAMP(6) not null,
- EXT_TASK_ID_ NVARCHAR2(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ NVARCHAR2(255),
- WORKER_ID_ NVARCHAR2(255),
- PRIORITY_ NUMBER(19,0) DEFAULT 0 NOT NULL,
- ERROR_MSG_ NVARCHAR2(2000),
- ERROR_DETAILS_ID_ NVARCHAR2(64),
- ACT_ID_ NVARCHAR2(255),
- ACT_INST_ID_ NVARCHAR2(64),
- EXECUTION_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- PROC_DEF_ID_ NVARCHAR2(64),
- PROC_DEF_KEY_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- STATE_ INTEGER,
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_PRO_INST_PROC_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_ACT_INST_PROC_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_TASK_INST_PROC_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_, 0);
-create index ACT_IDX_HI_DETAIL_PROC_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_, 0);
-create index ACT_IDX_HI_IDENT_LNK_PROC_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_VAR_INST_PROC_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_, 0);
-create index ACT_IDX_HI_INCIDENT_PROC_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TI on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_, 0);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ NVARCHAR2(64) not null,
- CASE_INST_ID_ NVARCHAR2(64) not null,
- BUSINESS_KEY_ NVARCHAR2(255),
- CASE_DEF_ID_ NVARCHAR2(64) not null,
- CREATE_TIME_ TIMESTAMP(6) not null,
- CLOSE_TIME_ TIMESTAMP(6),
- DURATION_ NUMBER(19,0),
- STATE_ INTEGER,
- CREATE_USER_ID_ NVARCHAR2(255),
- SUPER_CASE_INSTANCE_ID_ NVARCHAR2(64),
- SUPER_PROCESS_INSTANCE_ID_ NVARCHAR2(64),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ NVARCHAR2(64) not null,
- PARENT_ACT_INST_ID_ NVARCHAR2(64),
- CASE_DEF_ID_ NVARCHAR2(64) not null,
- CASE_INST_ID_ NVARCHAR2(64) not null,
- CASE_ACT_ID_ NVARCHAR2(255) not null,
- TASK_ID_ NVARCHAR2(64),
- CALL_PROC_INST_ID_ NVARCHAR2(64),
- CALL_CASE_INST_ID_ NVARCHAR2(64),
- CASE_ACT_NAME_ NVARCHAR2(255),
- CASE_ACT_TYPE_ NVARCHAR2(255),
- CREATE_TIME_ TIMESTAMP(6) not null,
- END_TIME_ TIMESTAMP(6),
- DURATION_ NUMBER(19,0),
- STATE_ INTEGER,
- REQUIRED_ NUMBER(1,0) CHECK (REQUIRED_ IN (1,0)),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_, 0);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ NVARCHAR2(64) NOT NULL,
- DEC_DEF_ID_ NVARCHAR2(64) NOT NULL,
- DEC_DEF_KEY_ NVARCHAR2(255) NOT NULL,
- DEC_DEF_NAME_ NVARCHAR2(255),
- PROC_DEF_KEY_ NVARCHAR2(255),
- PROC_DEF_ID_ NVARCHAR2(64),
- PROC_INST_ID_ NVARCHAR2(64),
- CASE_DEF_KEY_ NVARCHAR2(255),
- CASE_DEF_ID_ NVARCHAR2(64),
- CASE_INST_ID_ NVARCHAR2(64),
- ACT_INST_ID_ NVARCHAR2(64),
- ACT_ID_ NVARCHAR2(255),
- EVAL_TIME_ TIMESTAMP(6) not null,
- REMOVAL_TIME_ TIMESTAMP(6),
- COLLECT_VALUE_ NUMBER(*,10),
- USER_ID_ NVARCHAR2(255),
- ROOT_DEC_INST_ID_ NVARCHAR2(64),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- DEC_REQ_ID_ NVARCHAR2(64),
- DEC_REQ_KEY_ NVARCHAR2(255),
- TENANT_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ NVARCHAR2(64) NOT NULL,
- DEC_INST_ID_ NVARCHAR2(64) NOT NULL,
- CLAUSE_ID_ NVARCHAR2(64),
- CLAUSE_NAME_ NVARCHAR2(255),
- VAR_TYPE_ NVARCHAR2(100),
- BYTEARRAY_ID_ NVARCHAR2(64),
- DOUBLE_ NUMBER(*,10),
- LONG_ NUMBER(19,0),
- TEXT_ NVARCHAR2(2000),
- TEXT2_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_TIME_ TIMESTAMP(6),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ NVARCHAR2(64) NOT NULL,
- DEC_INST_ID_ NVARCHAR2(64) NOT NULL,
- CLAUSE_ID_ NVARCHAR2(64),
- CLAUSE_NAME_ NVARCHAR2(255),
- RULE_ID_ NVARCHAR2(64),
- RULE_ORDER_ INTEGER,
- VAR_NAME_ NVARCHAR2(255),
- VAR_TYPE_ NVARCHAR2(100),
- BYTEARRAY_ID_ NVARCHAR2(64),
- DOUBLE_ NUMBER(*,10),
- LONG_ NUMBER(19,0),
- TEXT_ NVARCHAR2(2000),
- TEXT2_ NVARCHAR2(2000),
- TENANT_ID_ NVARCHAR2(64),
- CREATE_TIME_ TIMESTAMP(6),
- ROOT_PROC_INST_ID_ NVARCHAR2(64),
- REMOVAL_TIME_ TIMESTAMP(6),
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_, 0);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.22.0.sql
index 9279e715..b37d87fb 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
);
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ NVARCHAR2(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ NVARCHAR2(64),
CREATE_TIME_ TIMESTAMP(6),
LAST_FAILURE_LOG_ID_ NVARCHAR2(64),
+ BATCH_ID_ NVARCHAR2(64),
primary key (ID_)
);
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ TIMESTAMP(6),
SUSPENSION_STATE_ INTEGER,
TENANT_ID_ NVARCHAR2(64),
+ TASK_STATE_ NVARCHAR2(64),
primary key (ID_)
);
@@ -839,6 +838,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ NVARCHAR2(2000),
TENANT_ID_ NVARCHAR2(64),
STATE_ NVARCHAR2(255),
+ RESTARTED_PROC_INST_ID_ NVARCHAR2(64),
primary key (ID_),
unique (PROC_INST_ID_)
);
@@ -895,6 +895,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ TIMESTAMP(6),
TENANT_ID_ NVARCHAR2(64),
REMOVAL_TIME_ TIMESTAMP(6),
+ TASK_STATE_ NVARCHAR2(64),
primary key (ID_)
);
@@ -1090,6 +1091,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ NVARCHAR2(64),
HOSTNAME_ NVARCHAR2(255),
REMOVAL_TIME_ TIMESTAMP(6),
+ BATCH_ID_ NVARCHAR2(64),
primary key (ID_)
);
@@ -1142,6 +1144,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.21.0.sql
deleted file mode 100644
index 9d18000d..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.21.0.sql
+++ /dev/null
@@ -1,110 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- NAME_ NVARCHAR2(255),
- TYPE_ NVARCHAR2(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ NVARCHAR2(64),
- GROUP_ID_ NVARCHAR2(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- FIRST_ NVARCHAR2(255),
- LAST_ NVARCHAR2(255),
- EMAIL_ NVARCHAR2(255),
- PWD_ NVARCHAR2(255),
- SALT_ NVARCHAR2(255),
- LOCK_EXP_TIME_ TIMESTAMP(6),
- ATTEMPTS_ INTEGER,
- PICTURE_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- USER_ID_ NVARCHAR2(64),
- TYPE_ NVARCHAR2(64),
- KEY_ NVARCHAR2(255),
- VALUE_ NVARCHAR2(255),
- PASSWORD_ BLOB,
- PARENT_ID_ NVARCHAR2(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ NVARCHAR2(64),
- REV_ INTEGER,
- NAME_ NVARCHAR2(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ NVARCHAR2(64) not null,
- TENANT_ID_ NVARCHAR2(64) not null,
- USER_ID_ NVARCHAR2(64),
- GROUP_ID_ NVARCHAR2(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_MEMB_GROUP on ACT_ID_MEMBERSHIP(GROUP_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create index ACT_IDX_MEMB_USER on ACT_ID_MEMBERSHIP(USER_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB on ACT_ID_TENANT_MEMBER(TENANT_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-create index ACT_IDX_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(USER_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(GROUP_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER
- (case when USER_ID_ is null then null else TENANT_ID_ end,
- case when USER_ID_ is null then null else USER_ID_ end);
-
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER
- (case when GROUP_ID_ is null then null else TENANT_ID_ end,
- case when GROUP_ID_ is null then null else GROUP_ID_ end);
-
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/oracle_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.20.0.sql
deleted file mode 100644
index a5389927..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.20.0.sql
+++ /dev/null
@@ -1,1410 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ bytea,
- GENERATED_ boolean,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.20.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ boolean,
- IS_CONCURRENT_ boolean,
- IS_SCOPE_ boolean,
- IS_EVENT_SCOPE_ boolean,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ boolean,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- LAST_UPDATED_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar (64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ TEXT not null,
- PROPERTIES_ TEXT,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- LAST_FAILURE_LOG_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_EXE_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_,HANDLER_CFG_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-
-create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_USER
- unique (TYPE_,USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_AUTHORIZATION
- add constraint ACT_UNIQ_AUTH_GROUP
- unique (TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-
-alter table ACT_RU_VARIABLE
- add constraint ACT_UNIQ_VARIABLE
- unique (VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_CASE_DEF on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-create index ACT_IDX_VAR_CASE_EXE on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_CASE_INST_ID on ACT_RU_VARIABLE(CASE_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(64),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ boolean,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ bytea,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- EXEC_START_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.22.0.sql
index bed33d64..854c5600 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_engine_7.22.0.sql
@@ -40,9 +40,6 @@ values ('history.cleanup.job.lock', '0', 1);
insert into ACT_GE_PROPERTY
values ('startup.lock', '0', 1);
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
insert into ACT_GE_PROPERTY
values ('installationId.lock', '0', 1);
@@ -69,7 +66,7 @@ create table ACT_GE_SCHEMA_LOG (
);
insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.21.0');
+values ('0', CURRENT_TIMESTAMP, '7.22.0');
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64),
@@ -133,6 +130,7 @@ create table ACT_RU_JOB (
TENANT_ID_ varchar(64),
CREATE_TIME_ timestamp,
LAST_FAILURE_LOG_ID_ varchar(64),
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -204,6 +202,7 @@ create table ACT_RU_TASK (
FOLLOW_UP_DATE_ timestamp,
SUSPENSION_STATE_ integer,
TENANT_ID_ varchar(64),
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -834,6 +833,7 @@ create table ACT_HI_PROCINST (
DELETE_REASON_ varchar(4000),
TENANT_ID_ varchar(64),
STATE_ varchar(255),
+ RESTARTED_PROC_INST_ID_ varchar(64),
primary key (ID_),
unique (PROC_INST_ID_)
);
@@ -890,6 +890,7 @@ create table ACT_HI_TASKINST (
FOLLOW_UP_DATE_ timestamp,
TENANT_ID_ varchar(64),
REMOVAL_TIME_ timestamp,
+ TASK_STATE_ varchar(64),
primary key (ID_)
);
@@ -1085,6 +1086,7 @@ create table ACT_HI_JOB_LOG (
TENANT_ID_ varchar(64),
HOSTNAME_ varchar(255),
REMOVAL_TIME_ timestamp,
+ BATCH_ID_ varchar(64),
primary key (ID_)
);
@@ -1137,6 +1139,7 @@ create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_T
create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.21.0.sql
deleted file mode 100644
index 5b63794f..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.21.0.sql
+++ /dev/null
@@ -1,109 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ bytea,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_MEMB_GROUP on ACT_ID_MEMBERSHIP(GROUP_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create index ACT_IDX_MEMB_USER on ACT_ID_MEMBERSHIP(USER_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_USER
- unique (TENANT_ID_, USER_ID_);
-
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_UNIQ_TENANT_MEMB_GROUP
- unique (TENANT_ID_, GROUP_ID_);
-
-create index ACT_IDX_TENANT_MEMB on ACT_ID_TENANT_MEMBER(TENANT_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-create index ACT_IDX_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(USER_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(GROUP_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/create/postgres_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.20.0.sql
deleted file mode 100644
index 2d07c5ab..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.20.0.sql
+++ /dev/null
@@ -1,523 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF;
-drop table ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_EXEC;
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
-drop index ACT_IDX_CASE_EXE_CASE_INST;
-drop index ACT_IDX_CASE_EXE_PARENT;
-drop index ACT_IDX_CASE_EXE_CASE_DEF;
-drop index ACT_IDX_VAR_CASE_EXE;
-drop index ACT_IDX_VAR_CASE_INST_ID;
-drop index ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-drop table ACT_RE_CASE_DEF;
-drop table ACT_RU_CASE_EXECUTION;
-drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-alter table ACT_GE_BYTEARRAY
- drop constraint ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop constraint ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop constraint ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop constraint ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
--- A UNIQUE constraint in CRDB creates an index in the background.
--- There is a dependency between the UNIQUE constraint and the index,
--- so CRDB requires DROP INDEX CASCADE to be used for the removal of
--- these types of constraints.
-drop index ACT_UNIQ_AUTH_GROUP cascade;
-drop index ACT_UNIQ_AUTH_USER cascade;
-drop index ACT_UNIQ_VARIABLE cascade;
-
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEAR_DEPL ;
-drop index ACT_IDX_EXE_ROOT_PI;
-drop index ACT_IDX_EXE_PROCINST ;
-drop index ACT_IDX_EXE_PARENT ;
-drop index ACT_IDX_EXE_SUPER;
-drop index ACT_IDX_EXE_PROCDEF;
-drop index ACT_IDX_TSKASS_TASK;
-drop index ACT_IDX_TASK_EXEC;
-drop index ACT_IDX_TASK_PROCINST;
-drop index ACT_IDX_TASK_PROCDEF;
-drop index ACT_IDX_VAR_EXE;
-drop index ACT_IDX_VAR_PROCINST;
-drop index ACT_IDX_VAR_BYTEARRAY;
-drop index ACT_IDX_JOB_EXCEPTION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_EXT_TASK_TOPIC;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-drop index ACT_IDX_JOB_HANDLER;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_EVENT_SUBSCR;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID;
-drop index ACT_IDX_INC_EXID;
-drop index ACT_IDX_INC_PROCDEFID;
-drop index ACT_IDX_INC_PROCINSTID;
-drop index ACT_IDX_INC_ROOTCAUSEINCID;
-drop index ACT_IDX_INC_JOB_DEF;
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY;
-drop table ACT_GE_BYTEARRAY;
-drop table ACT_RE_DEPLOYMENT;
-drop table ACT_RE_PROCDEF;
-drop table ACT_RE_CAMFORMDEF;
-drop table ACT_RU_EXECUTION;
-drop table ACT_RU_JOB;
-drop table ACT_RU_JOBDEF;
-drop table ACT_RU_TASK;
-drop table ACT_RU_IDENTITYLINK;
-drop table ACT_RU_VARIABLE;
-drop table ACT_RU_EVENT_SUBSCR;
-drop table ACT_RU_INCIDENT;
-drop table ACT_RU_AUTHORIZATION;
-drop table ACT_RU_FILTER;
-drop table ACT_RU_METER_LOG;
-drop table ACT_RU_TASK_METER_LOG;
-drop table ACT_RU_EXT_TASK;
-drop table ACT_RU_BATCH;
-drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST;
-
-drop table ACT_HI_DEC_IN;
-
-drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST;
-drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST;
-drop table ACT_HI_ACTINST;
-drop table ACT_HI_VARINST;
-drop table ACT_HI_TASKINST;
-drop table ACT_HI_DETAIL;
-drop table ACT_HI_COMMENT;
-drop table ACT_HI_ATTACHMENT;
-drop table ACT_HI_OP_LOG;
-drop table ACT_HI_INCIDENT;
-drop table ACT_HI_JOB_LOG;
-drop table ACT_HI_BATCH;
-drop table ACT_HI_IDENTITYLINK;
-drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.21.0.sql
deleted file mode 100644
index 066edc0e..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_engine_7.21.0.sql
+++ /dev/null
@@ -1,524 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF;
-drop table ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_EXEC;
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
-drop index ACT_IDX_CASE_EXE_CASE_INST;
-drop index ACT_IDX_CASE_EXE_PARENT;
-drop index ACT_IDX_CASE_EXE_CASE_DEF;
-drop index ACT_IDX_VAR_CASE_EXE;
-drop index ACT_IDX_VAR_CASE_INST_ID;
-drop index ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-drop table ACT_RE_CASE_DEF;
-drop table ACT_RU_CASE_EXECUTION;
-drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-alter table ACT_GE_BYTEARRAY
- drop constraint ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop constraint ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop constraint ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop constraint ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
--- A UNIQUE constraint in CRDB creates an index in the background.
--- There is a dependency between the UNIQUE constraint and the index,
--- so CRDB requires DROP INDEX CASCADE to be used for the removal of
--- these types of constraints.
-drop index ACT_UNIQ_AUTH_GROUP cascade;
-drop index ACT_UNIQ_AUTH_USER cascade;
-drop index ACT_UNIQ_VARIABLE cascade;
-
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEAR_DEPL ;
-drop index ACT_IDX_EXE_ROOT_PI;
-drop index ACT_IDX_EXE_PROCINST ;
-drop index ACT_IDX_EXE_PARENT ;
-drop index ACT_IDX_EXE_SUPER;
-drop index ACT_IDX_EXE_PROCDEF;
-drop index ACT_IDX_TSKASS_TASK;
-drop index ACT_IDX_TASK_EXEC;
-drop index ACT_IDX_TASK_PROCINST;
-drop index ACT_IDX_TASK_PROCDEF;
-drop index ACT_IDX_VAR_EXE;
-drop index ACT_IDX_VAR_PROCINST;
-drop index ACT_IDX_VAR_BYTEARRAY;
-drop index ACT_IDX_JOB_EXCEPTION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_IDX_JOB_ROOT_PROCINST;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_EXT_TASK_TOPIC;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-drop index ACT_IDX_JOB_HANDLER;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_EVENT_SUBSCR;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID;
-drop index ACT_IDX_INC_EXID;
-drop index ACT_IDX_INC_PROCDEFID;
-drop index ACT_IDX_INC_PROCINSTID;
-drop index ACT_IDX_INC_ROOTCAUSEINCID;
-drop index ACT_IDX_INC_JOB_DEF;
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY;
-drop table ACT_GE_BYTEARRAY;
-drop table ACT_RE_DEPLOYMENT;
-drop table ACT_RE_PROCDEF;
-drop table ACT_RE_CAMFORMDEF;
-drop table ACT_RU_EXECUTION;
-drop table ACT_RU_JOB;
-drop table ACT_RU_JOBDEF;
-drop table ACT_RU_TASK;
-drop table ACT_RU_IDENTITYLINK;
-drop table ACT_RU_VARIABLE;
-drop table ACT_RU_EVENT_SUBSCR;
-drop table ACT_RU_INCIDENT;
-drop table ACT_RU_AUTHORIZATION;
-drop table ACT_RU_FILTER;
-drop table ACT_RU_METER_LOG;
-drop table ACT_RU_TASK_METER_LOG;
-drop table ACT_RU_EXT_TASK;
-drop table ACT_RU_BATCH;
-drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST;
-
-drop table ACT_HI_DEC_IN;
-
-drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST;
-drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST;
-drop table ACT_HI_ACTINST;
-drop table ACT_HI_VARINST;
-drop table ACT_HI_TASKINST;
-drop table ACT_HI_DETAIL;
-drop table ACT_HI_COMMENT;
-drop table ACT_HI_ATTACHMENT;
-drop table ACT_HI_OP_LOG;
-drop table ACT_HI_INCIDENT;
-drop table ACT_HI_JOB_LOG;
-drop table ACT_HI_BATCH;
-drop table ACT_HI_IDENTITYLINK;
-drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.20.0.sql
deleted file mode 100644
index ff89a508..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.20.0.sql
+++ /dev/null
@@ -1,51 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
--- A UNIQUE constraint in CRDB creates an index in the background.
--- There is a dependency between the UNIQUE constraint and the index,
--- so CRDB requires DROP INDEX CASCADE to be used for the removal of
--- these types of constraints.
-drop index ACT_UNIQ_TENANT_MEMB_USER cascade;
-drop index ACT_UNIQ_TENANT_MEMB_GROUP cascade;
-
-drop index ACT_IDX_MEMB_GROUP;
-drop index ACT_IDX_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB;
-drop index ACT_IDX_TENANT_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER;
-drop table ACT_ID_TENANT;
-drop table ACT_ID_INFO;
-drop table ACT_ID_GROUP;
-drop table ACT_ID_MEMBERSHIP;
-drop table ACT_ID_USER;
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.21.0.sql
deleted file mode 100644
index ff89a508..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/cockroachdb_identity_7.21.0.sql
+++ /dev/null
@@ -1,51 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
--- A UNIQUE constraint in CRDB creates an index in the background.
--- There is a dependency between the UNIQUE constraint and the index,
--- so CRDB requires DROP INDEX CASCADE to be used for the removal of
--- these types of constraints.
-drop index ACT_UNIQ_TENANT_MEMB_USER cascade;
-drop index ACT_UNIQ_TENANT_MEMB_GROUP cascade;
-
-drop index ACT_IDX_MEMB_GROUP;
-drop index ACT_IDX_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB;
-drop index ACT_IDX_TENANT_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER;
-drop table ACT_ID_TENANT;
-drop table ACT_ID_INFO;
-drop table ACT_ID_GROUP;
-drop table ACT_ID_MEMBERSHIP;
-drop table ACT_ID_USER;
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.20.0.sql
deleted file mode 100644
index 3fb2e6c0..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.20.0.sql
+++ /dev/null
@@ -1,521 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF;
-drop table ACT_RE_DECISION_REQ_DEF;
-
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-
-alter table ACT_RU_CASE_EXECUTION
- drop foreign key ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop foreign key ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop foreign key ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_EXEC;
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-drop index ACT_IDX_CASE_EXEC_CASE;
-drop index ACT_IDX_CASE_EXEC_PARENT;
-drop index ACT_IDX_VARIABLE_CASE_EXEC;
-drop index ACT_IDX_VARIABLE_CASE_INST;
-drop index ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
--- https://app.camunda.com/jira/browse/CAM-9165
-drop index ACT_IDX_CASE_EXE_CASE_INST;
-
-drop table ACT_RE_CASE_DEF;
-drop table ACT_RU_CASE_EXECUTION;
-drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_EXECUTION_ROOT_PI;
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_UNIQ_AUTH_USER;
-drop index ACT_UNIQ_AUTH_GROUP;
-drop index ACT_UNIQ_VARIABLE;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-alter table ACT_GE_BYTEARRAY
- drop foreign key ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop foreign key ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop foreign key ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop foreign key ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop foreign key ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop foreign key ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop foreign key ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop foreign key ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop foreign key ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop foreign key ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop foreign key ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop foreign key ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop foreign key ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop foreign key ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop foreign key ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop foreign key ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-drop index ACT_IDX_EXECUTION_PROC;
-drop index ACT_IDX_EXECUTION_PARENT;
-drop index ACT_IDX_EXECUTION_SUPER;
-drop index ACT_IDX_EXECUTION_PROCINST;
-drop index ACT_IDX_EVENT_SUBSCR_EXEC;
-drop index ACT_IDX_BA_DEPLOYMENT;
-drop index ACT_IDX_IDENT_LNK_TASK;
-drop index ACT_IDX_INCIDENT_EXEC;
-drop index ACT_IDX_INCIDENT_PROCINST;
-drop index ACT_IDX_INCIDENT_PROC_DEF_ID;
-drop index ACT_IDX_INCIDENT_CAUSE;
-drop index ACT_IDX_INCIDENT_ROOT_CAUSE;
-drop index ACT_IDX_INCIDENT_JOB_DEF;
-drop index ACT_IDX_JOB_EXCEPTION_STACK;
-drop index ACT_IDX_VARIABLE_BA;
-drop index ACT_IDX_VARIABLE_EXEC;
-drop index ACT_IDX_VARIABLE_PROCINST;
-drop index ACT_IDX_TASK_EXEC;
-drop index ACT_IDX_TASK_PROCINST;
-drop index ACT_IDX_TASK_PROC_DEF_ID;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_TOPIC;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY;
-drop table ACT_GE_BYTEARRAY;
-drop table ACT_RE_DEPLOYMENT;
-drop table ACT_RE_PROCDEF;
-drop table ACT_RE_CAMFORMDEF;
-drop table ACT_RU_VARIABLE;
-drop table ACT_RU_IDENTITYLINK;
-drop table ACT_RU_TASK;
-drop table ACT_RU_EXECUTION;
-drop table ACT_RU_JOB;
-drop table ACT_RU_JOBDEF;
-drop table ACT_RU_EVENT_SUBSCR;
-drop table ACT_RU_INCIDENT;
-drop table ACT_RU_AUTHORIZATION;
-drop table ACT_RU_FILTER;
-drop table ACT_RU_METER_LOG;
-drop table ACT_RU_TASK_METER_LOG;
-drop table ACT_RU_EXT_TASK;
-drop table ACT_RU_BATCH;
-drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST;
-
-drop table ACT_HI_DEC_IN;
-
-drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST;
-drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST;
-drop table ACT_HI_ACTINST;
-drop table ACT_HI_VARINST;
-drop table ACT_HI_TASKINST;
-drop table ACT_HI_DETAIL;
-drop table ACT_HI_COMMENT;
-drop table ACT_HI_ATTACHMENT;
-drop table ACT_HI_OP_LOG;
-drop table ACT_HI_INCIDENT;
-drop table ACT_HI_JOB_LOG;
-drop table ACT_HI_BATCH;
-drop table ACT_HI_IDENTITYLINK;
-drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.22.0.sql
index 879de0f4..4555004e 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_engine_7.22.0.sql
@@ -401,6 +401,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
drop index ACT_IDX_HI_PRO_INST_RM_TIME;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID;
drop index ACT_IDX_HI_ACTINST_ROOT_PI;
drop index ACT_IDX_HI_ACT_INST_START_END;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.21.0.sql
deleted file mode 100644
index a35e7bd0..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.21.0.sql
+++ /dev/null
@@ -1,41 +0,0 @@
---
--- 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.
---
-
-drop index ACT_UNIQ_TENANT_MEMB_USER;
-drop index ACT_UNIQ_TENANT_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop foreign key ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop foreign key ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER;
-drop table ACT_ID_TENANT;
-drop table ACT_ID_INFO;
-drop table ACT_ID_MEMBERSHIP;
-drop table ACT_ID_GROUP;
-drop table ACT_ID_USER;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/db2_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.20.0.sql
deleted file mode 100644
index e972c6b7..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.20.0.sql
+++ /dev/null
@@ -1,500 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF if exists;
-drop table ACT_RE_DECISION_REQ_DEF if exists;
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop constraint ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop constraint ACT_FK_CASE_SENTRY_CASE_EXEC;
-
-drop table ACT_RE_CASE_DEF if exists;
-drop table ACT_RU_CASE_EXECUTION if exists;
-drop table ACT_RU_CASE_SENTRY_PART if exists;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_EXEC_ROOT_PI;
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-alter table ACT_GE_BYTEARRAY
- drop constraint ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop constraint ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop constraint ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_AUTHORIZATION
- drop constraint ACT_UNIQ_AUTH_GROUP;
-
-alter table ACT_RU_AUTHORIZATION
- drop constraint ACT_UNIQ_AUTH_USER;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_UNIQ_VARIABLE;
-
-alter table ACT_RU_EXT_TASK
- drop constraint ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID;
-drop index ACT_IDX_INC_EXID;
-drop index ACT_IDX_INC_PROCDEFID;
-drop index ACT_IDX_INC_PROCINSTID;
-drop index ACT_IDX_INC_ROOTCAUSEINCID;
-drop index ACT_IDX_INC_JOB_DEF;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_TOPIC;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-drop index ACT_IDX_JOB_HANDLER;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY if exists;
-drop table ACT_GE_BYTEARRAY if exists;
-drop table ACT_RE_DEPLOYMENT if exists;
-drop table ACT_RU_EXECUTION if exists;
-drop table ACT_RU_JOB if exists;
-drop table ACT_RU_JOBDEF if exists;
-drop table ACT_RE_PROCDEF if exists;
-drop table ACT_RE_CAMFORMDEF if exists;
-drop table ACT_RU_TASK if exists;
-drop table ACT_RU_IDENTITYLINK if exists;
-drop table ACT_RU_VARIABLE if exists;
-drop table ACT_RU_EVENT_SUBSCR if exists;
-drop table ACT_RU_INCIDENT if exists;
-drop table ACT_RU_AUTHORIZATION if exists;
-drop table ACT_RU_FILTER if exists;
-drop table ACT_RU_METER_LOG if exists;
-drop table ACT_RU_TASK_METER_LOG if exists;
-drop table ACT_RU_EXT_TASK if exists;
-drop table ACT_RU_BATCH if exists;
-drop table ACT_GE_SCHEMA_LOG if exists;
-
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST if exists;
-
-drop table ACT_HI_DEC_IN if exists;
-
-drop table ACT_HI_DEC_OUT if exists;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST if exists;
-drop table ACT_HI_CASEACTINST if exists;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST if exists;
-drop table ACT_HI_ACTINST if exists;
-drop table ACT_HI_VARINST if exists;
-drop table ACT_HI_TASKINST if exists;
-drop table ACT_HI_DETAIL if exists;
-drop table ACT_HI_COMMENT if exists;
-drop table ACT_HI_ATTACHMENT if exists;
-drop table ACT_HI_OP_LOG if exists;
-drop table ACT_HI_INCIDENT if exists;
-drop table ACT_HI_JOB_LOG if exists;
-drop table ACT_HI_BATCH if exists;
-drop table ACT_HI_IDENTITYLINK if exists;
-drop table ACT_HI_EXT_TASK_LOG if exists;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.22.0.sql
index b34a79d2..36baddba 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_engine_7.22.0.sql
@@ -380,6 +380,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
drop index ACT_IDX_HI_PRO_INST_RM_TIME;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID;
drop index ACT_IDX_HI_ACTINST_ROOT_PI;
drop index ACT_IDX_HI_ACT_INST_START_END;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.21.0.sql
deleted file mode 100644
index 0d419b02..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.21.0.sql
+++ /dev/null
@@ -1,44 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_UNIQ_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_UNIQ_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER if exists;
-drop table ACT_ID_TENANT if exists;
-drop table ACT_ID_INFO if exists;
-drop table ACT_ID_GROUP if exists;
-drop table ACT_ID_MEMBERSHIP if exists;
-drop table ACT_ID_USER if exists;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/h2_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.20.0.sql
deleted file mode 100644
index 569c6e8c..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.20.0.sql
+++ /dev/null
@@ -1,495 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop FOREIGN KEY ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF;
-drop index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF;
-
-drop table if exists ACT_RE_DECISION_DEF;
-drop table if exists ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION;
-drop index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_EXEC;
-
--- https://app.camunda.com/jira/browse/CAM-9165
-drop index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION;
-
-drop table if exists ACT_RE_CASE_DEF;
-drop table if exists ACT_RU_CASE_EXECUTION;
-drop table if exists ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION;
-drop index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION;
-drop index ACT_IDX_TASK_CREATE on ACT_RU_TASK;
-drop index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK;
-drop index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK;
-drop index ACT_IDX_TASK_OWNER on ACT_RU_TASK;
-drop index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE;
-drop index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT;
-drop index ACT_IDX_JOB_PROCINST on ACT_RU_JOB;
-drop index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME on ACT_RU_TASK_METER_LOG;
-
-
-drop index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK;
-
-alter table ACT_GE_BYTEARRAY
- drop FOREIGN KEY ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop FOREIGN KEY ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop FOREIGN KEY ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop FOREIGN KEY ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop FOREIGN KEY ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop FOREIGN KEY ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop FOREIGN KEY ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_EXID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT;
-drop index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION;
-drop index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK;
-
-drop index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF;
-drop index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK;
-drop index ACT_IDX_EXT_TASK_PRIORITY on ACT_RU_EXT_TASK;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS on ACT_RU_EXT_TASK;
-drop index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT;
-drop index ACT_IDX_JOBDEF_TENANT_ID ON ACT_RU_JOBDEF;
-drop index ACT_IDX_JOB_TENANT_ID ON ACT_RU_JOB;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR;
-drop index ACT_IDX_VARIABLE_TENANT_ID ON ACT_RU_VARIABLE;
-drop index ACT_IDX_TASK_TENANT_ID ON ACT_RU_TASK;
-drop index ACT_IDX_EXEC_TENANT_ID ON ACT_RU_EXECUTION;
-drop index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID ON ACT_RE_DEPLOYMENT;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF on ACT_RU_BATCH;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF on ACT_RU_BATCH;
-drop index ACT_IDX_BATCH_JOB_DEF on ACT_RU_BATCH;
-
-drop index ACT_IDX_PROCDEF_VER_TAG on ACT_RE_PROCDEF;
-
-drop index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB;
-drop index ACT_IDX_JOB_HANDLER on ACT_RU_JOB;
-
-drop index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION;
-drop index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION;
-
-drop index ACT_IDX_BATCH_ID on ACT_RU_VARIABLE;
-
-drop table if exists ACT_GE_PROPERTY;
-drop table if exists ACT_RU_VARIABLE;
-drop table if exists ACT_GE_BYTEARRAY;
-drop table if exists ACT_RE_DEPLOYMENT;
-drop table if exists ACT_RU_IDENTITYLINK;
-drop table if exists ACT_RU_TASK;
-drop table if exists ACT_RE_PROCDEF;
-drop table if exists ACT_RE_CAMFORMDEF;
-drop table if exists ACT_RU_EXECUTION;
-drop table if exists ACT_RU_JOB;
-drop table if exists ACT_RU_JOBDEF;
-drop table if exists ACT_RU_EVENT_SUBSCR;
-drop table if exists ACT_RU_INCIDENT;
-drop table if exists ACT_RU_AUTHORIZATION;
-drop table if exists ACT_RU_FILTER;
-drop table if exists ACT_RU_METER_LOG;
-drop table if exists ACT_RU_TASK_METER_LOG;
-drop table if exists ACT_RU_EXT_TASK;
-drop table if exists ACT_RU_BATCH;
-drop table if exists ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST;
-
-drop index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN;
-
-drop index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT;
-
-drop table if exists ACT_HI_DECINST;
-
-drop table if exists ACT_HI_DEC_IN;
-
-drop table if exists ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_CASEINST on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST;
-
-drop table if exists ACT_HI_CASEINST;
-drop table if exists ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG;
-
-drop index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT;
-
-drop index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT;
-
-drop table if exists ACT_HI_PROCINST;
-drop table if exists ACT_HI_ACTINST;
-drop table if exists ACT_HI_VARINST;
-drop table if exists ACT_HI_TASKINST;
-drop table if exists ACT_HI_DETAIL;
-drop table if exists ACT_HI_COMMENT;
-drop table if exists ACT_HI_ATTACHMENT;
-drop table if exists ACT_HI_OP_LOG;
-drop table if exists ACT_HI_INCIDENT;
-drop table if exists ACT_HI_JOB_LOG;
-drop table if exists ACT_HI_BATCH;
-drop table if exists ACT_HI_IDENTITYLINK;
-drop table if exists ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.22.0.sql
index eac084e6..0bedde28 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_engine_7.22.0.sql
@@ -375,6 +375,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST;
drop index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST;
drop index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.20.0.sql
deleted file mode 100644
index 3739af1e..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.20.0.sql
+++ /dev/null
@@ -1,518 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_RE_DECISION_DEF.ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_RE_DECISION_DEF.ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_RE_DECISION_REQ_DEF.ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_DECISION_DEF') drop table ACT_RE_DECISION_DEF;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_DECISION_REQ_DEF') drop table ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-drop index ACT_RU_CASE_EXECUTION.ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_RE_CASE_DEF.ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_RU_CASE_EXECUTION.ACT_IDX_CASE_EXEC_TENANT_ID;
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-drop index ACT_RU_CASE_EXECUTION.ACT_IDX_CASE_EXEC_CASE;
-drop index ACT_RU_CASE_EXECUTION.ACT_IDX_CASE_EXEC_PARENT;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_CASE_EXEC;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_CASE_INST;
-drop index ACT_RU_TASK.ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_RU_TASK.ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_RU_CASE_SENTRY_PART.ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_RU_CASE_SENTRY_PART.ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop constraint ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop constraint ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop constraint ACT_FK_CASE_SENTRY_CASE_EXEC;
-
--- https://app.camunda.com/jira/browse/CAM-9165
-drop index ACT_RU_CASE_EXECUTION.ACT_IDX_CASE_EXE_CASE_INST;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_CASE_DEF') drop table ACT_RE_CASE_DEF;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_CASE_EXECUTION') drop table ACT_RU_CASE_EXECUTION;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_CASE_SENTRY_PART') drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_GE_BYTEARRAY.ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_GE_BYTEARRAY.ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXEC_ROOT_PI;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXEC_BUSKEY;
-drop index ACT_RU_TASK.ACT_IDX_TASK_CREATE;
-drop index ACT_RU_TASK.ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_RU_TASK.ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_RU_TASK.ACT_IDX_TASK_OWNER;
-drop index ACT_RU_IDENTITYLINK.ACT_IDX_IDENT_LNK_USER;
-drop index ACT_RU_IDENTITYLINK.ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-drop index ACT_RU_EVENT_SUBSCR.ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_RU_INCIDENT.ACT_IDX_INC_CONFIGURATION;
-drop index ACT_RU_JOB.ACT_IDX_JOB_PROCINST;
-drop index ACT_RU_AUTHORIZATION.ACT_UNIQ_AUTH_GROUP;
-drop index ACT_RU_AUTHORIZATION.ACT_UNIQ_AUTH_USER;
-drop index ACT_RU_VARIABLE.ACT_UNIQ_VARIABLE;
-drop index ACT_RU_AUTHORIZATION.ACT_IDX_AUTH_GROUP_ID;
-
--- new metric milliseconds column
-DROP INDEX ACT_RU_METER_LOG.ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_RU_METER_LOG.ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_RU_METER_LOG.ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_RU_METER_LOG.ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_RU_METER_LOG.ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_RU_TASK_METER_LOG.ACT_IDX_TASK_METER_LOG_TIME;
-
-
--- indexes for concurrency problems - https://app.camunda.com/jira/browse/CAM-1646 --
-drop index ACT_RU_EXECUTION.ACT_IDX_EXECUTION_PROC;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXECUTION_PARENT;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXECUTION_SUPER;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXECUTION_PROCINST;
-drop index ACT_RU_EVENT_SUBSCR.ACT_IDX_EVENT_SUBSCR_EXEC;
-drop index ACT_GE_BYTEARRAY.ACT_IDX_BA_DEPLOYMENT;
-drop index ACT_RU_IDENTITYLINK.ACT_IDX_IDENT_LNK_TASK;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_EXEC;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_PROCINST;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_PROC_DEF_ID;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_CAUSE;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_ROOT_CAUSE;
-drop index ACT_RU_INCIDENT.ACT_IDX_INCIDENT_JOB_DEF;
-drop index ACT_RU_JOB.ACT_IDX_JOB_EXCEPTION_STACK;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_BA;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_EXEC;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_PROCINST;
-drop index ACT_RU_TASK.ACT_IDX_TASK_EXEC;
-drop index ACT_RU_TASK.ACT_IDX_TASK_PROCINST;
-drop index ACT_RU_TASK.ACT_IDX_TASK_PROC_DEF_ID;
-drop index ACT_RU_AUTHORIZATION.ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_RU_EXT_TASK.ACT_IDX_EXT_TASK_TOPIC;
-drop index ACT_RU_EXT_TASK.ACT_IDX_EXT_TASK_EXEC;
-
-
-drop index ACT_GE_BYTEARRAY.ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_RE_DEPLOYMENT.ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_RU_JOBDEF.ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_RU_JOB.ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_RU_EVENT_SUBSCR.ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_RE_PROCDEF.ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_RU_EXT_TASK.ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_RU_EXT_TASK.ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_RU_EXT_TASK.ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_RU_INCIDENT.ACT_IDX_INC_TENANT_ID;
-drop index ACT_RU_JOBDEF.ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_RU_JOB.ACT_IDX_JOB_TENANT_ID;
-drop index ACT_RU_EVENT_SUBSCR.ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_RU_TASK.ACT_IDX_TASK_TENANT_ID;
-drop index ACT_RU_EXECUTION.ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_RE_PROCDEF.ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_RE_DEPLOYMENT.ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_RU_JOB.ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_RU_BATCH.ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_RU_BATCH.ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_RU_BATCH.ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_RU_JOB.ACT_IDX_JOB_EXECUTION_ID;
-
-alter table ACT_GE_BYTEARRAY
- drop constraint ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop constraint ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop constraint ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop constraint ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
-drop index ACT_RU_IDENTITYLINK.ACT_IDX_ATHRZ_PROCEDEF;
-
-drop index ACT_RE_PROCDEF.ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_RU_AUTHORIZATION.ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_RU_AUTHORIZATION.ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_RU_VARIABLE.ACT_IDX_BATCH_ID;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_GE_PROPERTY') drop table ACT_GE_PROPERTY;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_GE_BYTEARRAY') drop table ACT_GE_BYTEARRAY;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_PROCDEF') drop table ACT_RE_PROCDEF;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_CAMFORMDEF') drop table ACT_RE_CAMFORMDEF;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RE_DEPLOYMENT') drop table ACT_RE_DEPLOYMENT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_IDENTITYLINK') drop table ACT_RU_IDENTITYLINK;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_TASK') drop table ACT_RU_TASK;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_VARIABLE') drop table ACT_RU_VARIABLE;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_EXECUTION') drop table ACT_RU_EXECUTION;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_EVENT_SUBSCR') drop table ACT_RU_EVENT_SUBSCR;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_JOB') drop table ACT_RU_JOB;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_JOBDEF') drop table ACT_RU_JOBDEF;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_INCIDENT') drop table ACT_RU_INCIDENT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_AUTHORIZATION') drop table ACT_RU_AUTHORIZATION;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_FILTER') drop table ACT_RU_FILTER;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_METER_LOG') drop table ACT_RU_METER_LOG;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_TASK_METER_LOG') drop table ACT_RU_TASK_METER_LOG;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_EXT_TASK') drop table ACT_RU_EXT_TASK;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_RU_BATCH') drop table ACT_RU_BATCH;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_GE_SCHEMA_LOG') drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_HI_DECINST.ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_HI_DEC_IN.ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_HI_DEC_IN.ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_HI_DEC_IN.ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_HI_DEC_IN.ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_HI_DEC_OUT.ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_HI_DEC_OUT.ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_HI_DEC_OUT.ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_HI_DEC_OUT.ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_DECINST') drop table ACT_HI_DECINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_DEC_IN') drop table ACT_HI_DEC_IN;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_DEC_OUT') drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_HI_CASEINST.ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_HI_CASEINST.ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_HI_CASEINST.ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_HI_CASEACTINST.ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_HI_CASEACTINST.ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_HI_CASEACTINST.ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_HI_CASEACTINST.ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_CASEINST') drop table ACT_HI_CASEINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_CASEACTINST') drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_END;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_END;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASK_INST_START;
-drop index ACT_HI_TASKINST.ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_HI_DETAIL.ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_HI_VARINST.ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_HI_VARINST.ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_HI_VARINST.ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_HI_VARINST.ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VARINST_NAME;
-drop index ACT_HI_VARINST.ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_HI_INCIDENT.ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_HI_JOB_LOG.ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_HI_EXT_TASK_LOG.ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG.ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BATCH.ACT_HI_BAT_RM_TIME;
-
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_HI_OP_LOG.ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_HI_ATTACHMENT.ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_HI_ATTACHMENT.ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_HI_ATTACHMENT.ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_HI_ATTACHMENT.ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_HI_ATTACHMENT.ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_HI_COMMENT.ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_HI_COMMENT.ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_HI_COMMENT.ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_HI_COMMENT.ACT_IDX_HI_COMMENT_RM_TIME;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_PROCINST') drop table ACT_HI_PROCINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_ACTINST') drop table ACT_HI_ACTINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_VARINST') drop table ACT_HI_VARINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_TASKINST') drop table ACT_HI_TASKINST;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_DETAIL') drop table ACT_HI_DETAIL;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_COMMENT') drop table ACT_HI_COMMENT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_ATTACHMENT') drop table ACT_HI_ATTACHMENT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_OP_LOG') drop table ACT_HI_OP_LOG;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_INCIDENT') drop table ACT_HI_INCIDENT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_JOB_LOG') drop table ACT_HI_JOB_LOG;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_BATCH') drop table ACT_HI_BATCH;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_IDENTITYLINK') drop table ACT_HI_IDENTITYLINK;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_HI_EXT_TASK_LOG') drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.22.0.sql
index cbac87d6..508cd612 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_engine_7.22.0.sql
@@ -399,6 +399,7 @@ drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_PROC_TIME;
drop index ACT_HI_PROCINST.ACT_IDX_HI_PI_PDEFID_END_TIME;
drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_ROOT_PI;
drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_INST_RM_TIME;
+drop index ACT_HI_PROCINST.ACT_IDX_HI_PRO_RST_PRO_INST_ID;
drop index ACT_HI_ACTINST.ACT_IDX_HI_ACTINST_ROOT_PI;
drop index ACT_HI_ACTINST.ACT_IDX_HI_ACT_INST_START_END;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.21.0.sql
deleted file mode 100644
index 0f1d52fa..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.21.0.sql
+++ /dev/null
@@ -1,41 +0,0 @@
---
--- 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.
---
-
-drop index ACT_ID_TENANT_MEMBER.ACT_UNIQ_TENANT_MEMB_USER;
-drop index ACT_ID_TENANT_MEMBER.ACT_UNIQ_TENANT_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_TENANT_MEMBER') drop table ACT_ID_TENANT_MEMBER;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_TENANT') drop table ACT_ID_TENANT;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_INFO') drop table ACT_ID_INFO;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_MEMBERSHIP') drop table ACT_ID_MEMBERSHIP;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_GROUP') drop table ACT_ID_GROUP;
-if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_ID_USER') drop table ACT_ID_USER;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mssql_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.20.0.sql
deleted file mode 100644
index 7e3ba967..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.20.0.sql
+++ /dev/null
@@ -1,496 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop FOREIGN KEY ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF;
-drop index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF;
-
-drop table if exists ACT_RE_DECISION_DEF;
-drop table if exists ACT_RE_DECISION_REQ_DEF;
-
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION;
-drop index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop FOREIGN KEY ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop foreign key ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop foreign key ACT_FK_CASE_SENTRY_CASE_EXEC;
-
--- https://app.camunda.com/jira/browse/CAM-9165
-drop index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION;
-
-drop table if exists ACT_RE_CASE_DEF;
-drop table if exists ACT_RU_CASE_EXECUTION;
-drop table if exists ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_EXEC_ROOT_PI on ACT_RU_EXECUTION;
-drop index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION;
-drop index ACT_IDX_TASK_CREATE on ACT_RU_TASK;
-drop index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK;
-drop index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK;
-drop index ACT_IDX_TASK_OWNER on ACT_RU_TASK;
-drop index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE;
-drop index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT;
-drop index ACT_IDX_JOB_PROCINST on ACT_RU_JOB;
-drop index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG;
-DROP INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME on ACT_RU_TASK_METER_LOG;
-
-drop index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK;
-
-drop index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB;
-
-alter table ACT_GE_BYTEARRAY
- drop FOREIGN KEY ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop FOREIGN KEY ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop FOREIGN KEY ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop FOREIGN KEY ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop FOREIGN KEY ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop FOREIGN KEY ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop FOREIGN KEY ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop FOREIGN KEY ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop FOREIGN KEY ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop FOREIGN KEY ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop FOREIGN KEY ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop FOREIGN KEY ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK;
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_EXID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT;
-drop index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT;
-drop index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION;
-drop index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK;
-
-drop index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY;
-drop index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF;
-drop index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK;
-drop index ACT_IDX_EXT_TASK_PRIORITY on ACT_RU_EXT_TASK;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS on ACT_RU_EXT_TASK;
-drop index ACT_IDX_INC_TENANT_ID ON ACT_RU_INCIDENT;
-drop index ACT_IDX_JOBDEF_TENANT_ID ON ACT_RU_JOBDEF;
-drop index ACT_IDX_JOB_TENANT_ID ON ACT_RU_JOB;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR;
-drop index ACT_IDX_VARIABLE_TENANT_ID ON ACT_RU_VARIABLE;
-drop index ACT_IDX_TASK_TENANT_ID ON ACT_RU_TASK;
-drop index ACT_IDX_EXEC_TENANT_ID ON ACT_RU_EXECUTION;
-drop index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID ON ACT_RE_DEPLOYMENT;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF on ACT_RU_BATCH;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF on ACT_RU_BATCH;
-drop index ACT_IDX_BATCH_JOB_DEF on ACT_RU_BATCH;
-
-drop index ACT_IDX_PROCDEF_VER_TAG on ACT_RE_PROCDEF;
-drop index ACT_IDX_JOB_HANDLER on ACT_RU_JOB;
-
-drop index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION;
-drop index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION;
-
-drop index ACT_IDX_BATCH_ID on ACT_RU_VARIABLE;
-
-drop table if exists ACT_GE_PROPERTY;
-drop table if exists ACT_RU_VARIABLE;
-drop table if exists ACT_GE_BYTEARRAY;
-drop table if exists ACT_RE_DEPLOYMENT;
-drop table if exists ACT_RU_IDENTITYLINK;
-drop table if exists ACT_RU_TASK;
-drop table if exists ACT_RE_PROCDEF;
-drop table if exists ACT_RE_CAMFORMDEF;
-drop table if exists ACT_RU_EXECUTION;
-drop table if exists ACT_RU_JOB;
-drop table if exists ACT_RU_JOBDEF;
-drop table if exists ACT_RU_EVENT_SUBSCR;
-drop table if exists ACT_RU_INCIDENT;
-drop table if exists ACT_RU_AUTHORIZATION;
-drop table if exists ACT_RU_FILTER;
-drop table if exists ACT_RU_METER_LOG;
-drop table if exists ACT_RU_TASK_METER_LOG;
-drop table if exists ACT_RU_EXT_TASK;
-drop table if exists ACT_RU_BATCH;
-drop table if exists ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST;
-
-drop index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN;
-
-drop index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT;
-
-drop table if exists ACT_HI_DECINST;
-
-drop table if exists ACT_HI_DEC_IN;
-
-drop table if exists ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST;
-drop index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_CASEINST on ACT_HI_CASEACTINST;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST;
-
-drop table if exists ACT_HI_CASEINST;
-drop table if exists ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST;
-drop index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT;
-drop index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG;
-
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG;
-
-drop index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT;
-
-drop index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT;
-drop index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT;
-
-drop table if exists ACT_HI_PROCINST;
-drop table if exists ACT_HI_ACTINST;
-drop table if exists ACT_HI_VARINST;
-drop table if exists ACT_HI_TASKINST;
-drop table if exists ACT_HI_DETAIL;
-drop table if exists ACT_HI_COMMENT;
-drop table if exists ACT_HI_ATTACHMENT;
-drop table if exists ACT_HI_OP_LOG;
-drop table if exists ACT_HI_INCIDENT;
-drop table if exists ACT_HI_JOB_LOG;
-drop table if exists ACT_HI_BATCH;
-drop table if exists ACT_HI_IDENTITYLINK;
-drop table if exists ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.22.0.sql
index ca63f3cc..08efb445 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_engine_7.22.0.sql
@@ -375,6 +375,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST;
drop index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST;
drop index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST;
drop index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.20.0.sql
deleted file mode 100644
index 8b3074d6..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.20.0.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop FOREIGN KEY ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop FOREIGN KEY ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB_GROUP;
-
-drop table if exists ACT_ID_TENANT_MEMBER;
-drop table if exists ACT_ID_TENANT;
-drop table if exists ACT_ID_INFO;
-drop table if exists ACT_ID_MEMBERSHIP;
-drop table if exists ACT_ID_GROUP;
-drop table if exists ACT_ID_USER;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.21.0.sql
deleted file mode 100644
index 8b3074d6..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.21.0.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop FOREIGN KEY ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop FOREIGN KEY ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop FOREIGN KEY ACT_FK_TENANT_MEMB_GROUP;
-
-drop table if exists ACT_ID_TENANT_MEMBER;
-drop table if exists ACT_ID_TENANT;
-drop table if exists ACT_ID_INFO;
-drop table if exists ACT_ID_MEMBERSHIP;
-drop table if exists ACT_ID_GROUP;
-drop table if exists ACT_ID_USER;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mariadb_identity_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/mysql_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.20.0.sql
deleted file mode 100644
index 8ef5b0e5..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.20.0.sql
+++ /dev/null
@@ -1,521 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF;
-drop table ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
-drop index ACT_IDX_CASE_EXE_CASE_INST;
-drop index ACT_IDX_CASE_EXE_PARENT;
-drop index ACT_IDX_CASE_EXE_CASE_DEF;
-drop index ACT_IDX_VAR_CASE_EXE;
-drop index ACT_IDX_VAR_CASE_INST_ID;
-drop index ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_EXEC;
-
-drop table ACT_RE_CASE_DEF;
-drop table ACT_RU_CASE_EXECUTION;
-drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEAR_DEPL;
-drop index ACT_IDX_EXE_ROOT_PROCINST;
-drop index ACT_IDX_EXE_PROCINST;
-drop index ACT_IDX_EXE_PARENT;
-drop index ACT_IDX_EXE_SUPER;
-drop index ACT_IDX_EXE_PROCDEF;
-drop index ACT_IDX_TSKASS_TASK;
-drop index ACT_IDX_TASK_EXEC;
-drop index ACT_IDX_TASK_PROCINST;
-drop index ACT_IDX_TASK_PROCDEF;
-drop index ACT_IDX_VAR_EXE;
-drop index ACT_IDX_VAR_PROCINST;
-drop index ACT_IDX_VAR_BYTEARRAY;
-drop index ACT_IDX_JOB_EXCEPTION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYP;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_EXT_TASK_TOPIC;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-drop index ACT_IDX_JOB_HANDLER;
-
-alter table ACT_GE_BYTEARRAY
- drop CONSTRAINT ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop CONSTRAINT ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop CONSTRAINT ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop CONSTRAINT ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop CONSTRAINT ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop CONSTRAINT ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop CONSTRAINT ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop CONSTRAINT ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop CONSTRAINT ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop CONSTRAINT ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_UNIQ_VARIABLE;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop CONSTRAINT ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop CONSTRAINT ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop CONSTRAINT ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_EVENT_SUBSCR;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID;
-drop index ACT_IDX_INC_EXID;
-drop index ACT_IDX_INC_PROCDEFID;
-drop index ACT_IDX_INC_PROCINSTID;
-drop index ACT_IDX_INC_ROOTCAUSEINCID;
-drop index ACT_IDX_INC_JOB_DEF;
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_UNIQ_AUTH_USER;
-drop index ACT_UNIQ_AUTH_GROUP;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY;
-drop table ACT_GE_BYTEARRAY;
-drop table ACT_RE_DEPLOYMENT;
-drop table ACT_RE_PROCDEF;
-drop table ACT_RE_CAMFORMDEF;
-drop table ACT_RU_IDENTITYLINK;
-drop table ACT_RU_VARIABLE;
-drop table ACT_RU_TASK;
-drop table ACT_RU_EXECUTION;
-drop table ACT_RU_JOB;
-drop table ACT_RU_JOBDEF;
-drop table ACT_RU_EVENT_SUBSCR;
-drop table ACT_RU_INCIDENT;
-drop table ACT_RU_AUTHORIZATION;
-drop table ACT_RU_FILTER;
-drop table ACT_RU_METER_LOG;
-drop table ACT_RU_TASK_METER_LOG;
-drop table ACT_RU_EXT_TASK;
-drop table ACT_RU_BATCH;
-drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST;
-
-drop table ACT_HI_DEC_IN;
-
-drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST;
-drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TI;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST;
-drop table ACT_HI_ACTINST;
-drop table ACT_HI_VARINST;
-drop table ACT_HI_TASKINST;
-drop table ACT_HI_DETAIL;
-drop table ACT_HI_COMMENT;
-drop table ACT_HI_ATTACHMENT;
-drop table ACT_HI_OP_LOG;
-drop table ACT_HI_INCIDENT;
-drop table ACT_HI_JOB_LOG;
-drop table ACT_HI_BATCH;
-drop table ACT_HI_IDENTITYLINK;
-drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.22.0.sql
index 62206b92..f540dec8 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_engine_7.22.0.sql
@@ -401,6 +401,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
drop index ACT_IDX_HI_PRO_INST_RM_TIME;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID;
drop index ACT_IDX_HI_ACTINST_ROOT_PI;
drop index ACT_IDX_HI_ACT_INST_START_END;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.21.0.sql
deleted file mode 100644
index 4f101a0f..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.21.0.sql
+++ /dev/null
@@ -1,46 +0,0 @@
---
--- 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.
---
-
-alter table ACT_ID_MEMBERSHIP
- drop CONSTRAINT ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop CONSTRAINT ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
-drop index ACT_IDX_MEMB_GROUP;
-drop index ACT_IDX_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB;
-drop index ACT_IDX_TENANT_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB_GROUP;
-drop index ACT_UNIQ_TENANT_MEMB_USER;
-drop index ACT_UNIQ_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER;
-drop table ACT_ID_TENANT;
-drop table ACT_ID_INFO;
-drop table ACT_ID_MEMBERSHIP;
-drop table ACT_ID_GROUP;
-drop table ACT_ID_USER;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/oracle_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.20.0.sql
deleted file mode 100644
index d39f60d9..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.20.0.sql
+++ /dev/null
@@ -1,524 +0,0 @@
---
--- 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.
---
-
-alter table ACT_RE_DECISION_DEF
- drop constraint ACT_FK_DEC_REQ;
-
-drop index ACT_IDX_DEC_DEF_TENANT_ID;
-drop index ACT_IDX_DEC_DEF_REQ_ID;
-drop index ACT_IDX_DEC_REQ_DEF_TENANT_ID;
-
-drop table ACT_RE_DECISION_DEF;
-drop table ACT_RE_DECISION_REQ_DEF;
---
--- 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.
---
-
-drop index ACT_IDX_CASE_EXEC_BUSKEY;
-drop index ACT_IDX_CASE_DEF_TENANT_ID;
-drop index ACT_IDX_CASE_EXEC_TENANT_ID;
-
-drop index ACT_IDX_CASE_EXE_CASE_INST;
-drop index ACT_IDX_CASE_EXE_PARENT;
-drop index ACT_IDX_CASE_EXE_CASE_DEF;
-drop index ACT_IDX_VAR_CASE_EXE;
-drop index ACT_IDX_VAR_CASE_INST_ID;
-drop index ACT_IDX_TASK_CASE_EXEC;
-drop index ACT_IDX_TASK_CASE_DEF_ID;
-drop index ACT_IDX_CASE_SENTRY_CASE_INST;
-drop index ACT_IDX_CASE_SENTRY_CASE_EXEC;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_INST;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_PARENT;
-
-alter table ACT_RU_CASE_EXECUTION
- drop CONSTRAINT ACT_FK_CASE_EXE_CASE_DEF;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_EXE;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_CASE_INST;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_EXE;
-
-alter table ACT_RU_TASK
- drop CONSTRAINT ACT_FK_TASK_CASE_DEF;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_INST;
-
-alter table ACT_RU_CASE_SENTRY_PART
- drop CONSTRAINT ACT_FK_CASE_SENTRY_CASE_EXEC;
-
-drop table ACT_RE_CASE_DEF;
-drop table ACT_RU_CASE_EXECUTION;
-drop table ACT_RU_CASE_SENTRY_PART;
---
--- 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.
---
-
-drop index ACT_IDX_BYTEARRAY_RM_TIME;
-drop index ACT_IDX_BYTEARRAY_ROOT_PI;
-drop index ACT_IDX_BYTEAR_DEPL ;
-drop index ACT_IDX_EXE_ROOT_PI;
-drop index ACT_IDX_EXE_PROCINST ;
-drop index ACT_IDX_EXE_PARENT ;
-drop index ACT_IDX_EXE_SUPER;
-drop index ACT_IDX_EXE_PROCDEF;
-drop index ACT_IDX_TSKASS_TASK;
-drop index ACT_IDX_TASK_EXEC;
-drop index ACT_IDX_TASK_PROCINST;
-drop index ACT_IDX_TASK_PROCDEF;
-drop index ACT_IDX_VAR_EXE;
-drop index ACT_IDX_VAR_PROCINST;
-drop index ACT_IDX_VAR_BYTEARRAY;
-drop index ACT_IDX_JOB_EXCEPTION;
-drop index ACT_IDX_JOB_PROCINST;
-drop index ACT_IDX_INC_CONFIGURATION;
-drop index ACT_IDX_AUTH_GROUP_ID;
-
-drop index ACT_IDX_EXEC_BUSKEY;
-drop index ACT_IDX_TASK_CREATE;
-drop index ACT_IDX_TASK_LAST_UPDATED;
-drop index ACT_IDX_TASK_ASSIGNEE;
-drop index ACT_IDX_TASK_OWNER;
-drop index ACT_IDX_IDENT_LNK_USER;
-drop index ACT_IDX_IDENT_LNK_GROUP;
-drop index ACT_IDX_VARIABLE_TASK_ID;
-drop index ACT_IDX_VARIABLE_TASK_NAME_TYPE;
-
--- new metric milliseconds column
-DROP INDEX ACT_IDX_METER_LOG_MS;
-DROP INDEX ACT_IDX_METER_LOG_NAME_MS;
-DROP INDEX ACT_IDX_METER_LOG_REPORT;
-
--- old metric timestamp column
-DROP INDEX ACT_IDX_METER_LOG_TIME;
-DROP INDEX ACT_IDX_METER_LOG;
-
--- task metric timestamp column
-drop index ACT_IDX_TASK_METER_LOG_TIME;
-
-drop index ACT_IDX_EXT_TASK_TOPIC;
-
-drop index ACT_IDX_JOB_EXECUTION_ID;
-drop index ACT_IDX_JOB_HANDLER;
-
-alter table ACT_GE_BYTEARRAY
- drop constraint ACT_FK_BYTEARR_DEPL;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCINST;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PARENT;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_SUPER;
-
-alter table ACT_RU_EXECUTION
- drop constraint ACT_FK_EXE_PROCDEF;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_TSKASS_TASK;
-
-alter table ACT_RU_IDENTITYLINK
- drop constraint ACT_FK_ATHRZ_PROCEDEF;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_EXE;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCINST;
-
-alter table ACT_RU_TASK
- drop constraint ACT_FK_TASK_PROCDEF;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_EXE;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_PROCINST;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_FK_VAR_BYTEARRAY;
-
-alter table ACT_RU_JOB
- drop constraint ACT_FK_JOB_EXCEPTION;
-
-alter table ACT_RU_EVENT_SUBSCR
- drop constraint ACT_FK_EVENT_EXEC;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_EXE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCINST;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_PROCDEF;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_CAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_RCAUSE;
-
-alter table ACT_RU_INCIDENT
- drop constraint ACT_FK_INC_JOB_DEF;
-
-alter table ACT_RU_AUTHORIZATION
- drop constraint ACT_UNIQ_AUTH_GROUP;
-
-alter table ACT_RU_AUTHORIZATION
- drop constraint ACT_UNIQ_AUTH_USER;
-
-alter table ACT_RU_VARIABLE
- drop constraint ACT_UNIQ_VARIABLE;
-
-alter table ACT_RU_EXT_TASK
- drop constraint ACT_FK_EXT_TASK_EXE;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_SEED_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_MONITOR_JOB_DEF;
-
-alter table ACT_RU_BATCH
- drop constraint ACT_FK_BATCH_JOB_DEF;
-
-alter table ACT_RU_EXT_TASK
- drop CONSTRAINT ACT_FK_EXT_TASK_ERROR_DETAILS;
-
-alter table ACT_RU_VARIABLE
- drop CONSTRAINT ACT_FK_VAR_BATCH;
-
-drop index ACT_IDX_EVENT_SUBSCR_CONFIG_;
-drop index ACT_IDX_EVENT_SUBSCR;
-drop index ACT_IDX_ATHRZ_PROCEDEF;
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567
-drop index ACT_IDX_INC_CAUSEINCID;
-drop index ACT_IDX_INC_EXID;
-drop index ACT_IDX_INC_PROCDEFID;
-drop index ACT_IDX_INC_PROCINSTID;
-drop index ACT_IDX_INC_ROOTCAUSEINCID;
-drop index ACT_IDX_INC_JOB_DEF;
-drop index ACT_IDX_AUTH_RESOURCE_ID;
-drop index ACT_IDX_EXT_TASK_EXEC;
-
-drop index ACT_IDX_BYTEARRAY_NAME;
-drop index ACT_IDX_DEPLOYMENT_NAME;
-drop index ACT_IDX_JOBDEF_PROC_DEF_ID;
-drop index ACT_IDX_JOB_HANDLER_TYPE;
-drop index ACT_IDX_EVENT_SUBSCR_EVT_NAME;
-drop index ACT_IDX_PROCDEF_DEPLOYMENT_ID;
-
-drop index ACT_IDX_EXT_TASK_TENANT_ID;
-drop index ACT_IDX_EXT_TASK_PRIORITY;
-drop index ACT_IDX_EXT_TASK_ERR_DETAILS;
-drop index ACT_IDX_INC_TENANT_ID;
-drop index ACT_IDX_JOBDEF_TENANT_ID;
-drop index ACT_IDX_JOB_TENANT_ID;
-drop index ACT_IDX_EVENT_SUBSCR_TENANT_ID;
-drop index ACT_IDX_VARIABLE_TENANT_ID;
-drop index ACT_IDX_TASK_TENANT_ID;
-drop index ACT_IDX_EXEC_TENANT_ID;
-drop index ACT_IDX_PROCDEF_TENANT_ID;
-drop index ACT_IDX_DEPLOYMENT_TENANT_ID;
-
-drop index ACT_IDX_JOB_JOB_DEF_ID;
-drop index ACT_IDX_BATCH_SEED_JOB_DEF;
-drop index ACT_IDX_BATCH_MONITOR_JOB_DEF;
-drop index ACT_IDX_BATCH_JOB_DEF;
-
-drop index ACT_IDX_PROCDEF_VER_TAG;
-
-drop index ACT_IDX_AUTH_ROOT_PI;
-drop index ACT_IDX_AUTH_RM_TIME;
-
-drop index ACT_IDX_BATCH_ID;
-
-drop table ACT_GE_PROPERTY;
-drop table ACT_GE_BYTEARRAY;
-drop table ACT_RE_DEPLOYMENT;
-drop table ACT_RE_PROCDEF;
-drop table ACT_RE_CAMFORMDEF;
-drop table ACT_RU_EXECUTION;
-drop table ACT_RU_JOB;
-drop table ACT_RU_JOBDEF;
-drop table ACT_RU_TASK;
-drop table ACT_RU_IDENTITYLINK;
-drop table ACT_RU_VARIABLE;
-drop table ACT_RU_EVENT_SUBSCR;
-drop table ACT_RU_INCIDENT;
-drop table ACT_RU_AUTHORIZATION;
-drop table ACT_RU_FILTER;
-drop table ACT_RU_METER_LOG;
-drop table ACT_RU_TASK_METER_LOG;
-drop table ACT_RU_EXT_TASK;
-drop table ACT_RU_BATCH;
-drop table ACT_GE_SCHEMA_LOG;
---
--- 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.
---
-
-drop index ACT_IDX_HI_DEC_INST_ID;
-drop index ACT_IDX_HI_DEC_INST_KEY;
-drop index ACT_IDX_HI_DEC_INST_PI;
-drop index ACT_IDX_HI_DEC_INST_CI;
-drop index ACT_IDX_HI_DEC_INST_ACT;
-drop index ACT_IDX_HI_DEC_INST_ACT_INST;
-drop index ACT_IDX_HI_DEC_INST_TIME;
-drop index ACT_IDX_HI_DEC_INST_TENANT_ID;
-drop index ACT_IDX_HI_DEC_INST_ROOT_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_ID;
-drop index ACT_IDX_HI_DEC_INST_REQ_KEY;
-drop index ACT_IDX_HI_DEC_INST_ROOT_PI;
-drop index ACT_IDX_HI_DEC_INST_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_IN_INST;
-drop index ACT_IDX_HI_DEC_IN_CLAUSE;
-drop index ACT_IDX_HI_DEC_IN_ROOT_PI;
-drop index ACT_IDX_HI_DEC_IN_RM_TIME;
-
-drop index ACT_IDX_HI_DEC_OUT_INST;
-drop index ACT_IDX_HI_DEC_OUT_RULE;
-drop index ACT_IDX_HI_DEC_OUT_ROOT_PI;
-drop index ACT_IDX_HI_DEC_OUT_RM_TIME;
-
-drop table ACT_HI_DECINST;
-
-drop table ACT_HI_DEC_IN;
-
-drop table ACT_HI_DEC_OUT;
---
--- 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.
---
-
-drop index ACT_IDX_HI_CAS_I_CLOSE;
-drop index ACT_IDX_HI_CAS_I_BUSKEY;
-drop index ACT_IDX_HI_CAS_I_TENANT_ID;
-drop index ACT_IDX_HI_CAS_A_I_CREATE;
-drop index ACT_IDX_HI_CAS_A_I_END;
-drop index ACT_IDX_HI_CAS_A_I_COMP;
-drop index ACT_IDX_HI_CAS_A_I_TENANT_ID;
-
-drop table ACT_HI_CASEINST;
-drop table ACT_HI_CASEACTINST;
---
--- 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.
---
-
-drop index ACT_IDX_HI_PRO_INST_END;
-drop index ACT_IDX_HI_PRO_I_BUSKEY;
-drop index ACT_IDX_HI_PRO_INST_TENANT_ID;
-drop index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
-drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
-drop index ACT_IDX_HI_PRO_INST_RM_TIME;
-
-drop index ACT_IDX_HI_ACTINST_ROOT_PI;
-drop index ACT_IDX_HI_ACT_INST_START_END;
-drop index ACT_IDX_HI_ACT_INST_END;
-drop index ACT_IDX_HI_ACT_INST_PROCINST;
-drop index ACT_IDX_HI_ACT_INST_COMP;
-drop index ACT_IDX_HI_ACT_INST_STATS;
-drop index ACT_IDX_HI_ACT_INST_TENANT_ID;
-drop index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_AI_PDEFID_END_TIME;
-drop index ACT_IDX_HI_ACT_INST_RM_TIME;
-
-drop index ACT_IDX_HI_TASKINST_ROOT_PI;
-drop index ACT_IDX_HI_TASK_INST_TENANT_ID;
-drop index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_TASKINST_PROCINST;
-drop index ACT_IDX_HI_TASKINSTID_PROCINST;
-drop index ACT_IDX_HI_TASK_INST_RM_TIME;
-drop index ACT_IDX_HI_TASK_INST_START;
-drop index ACT_IDX_HI_TASK_INST_END;
-
-drop index ACT_IDX_HI_DETAIL_ROOT_PI;
-drop index ACT_IDX_HI_DETAIL_PROC_INST;
-drop index ACT_IDX_HI_DETAIL_ACT_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_INST;
-drop index ACT_IDX_HI_DETAIL_CASE_EXEC;
-drop index ACT_IDX_HI_DETAIL_TIME;
-drop index ACT_IDX_HI_DETAIL_NAME;
-drop index ACT_IDX_HI_DETAIL_TASK_ID;
-drop index ACT_IDX_HI_DETAIL_TENANT_ID;
-drop index ACT_IDX_HI_DETAIL_PROC_DEF_KEY;
-drop index ACT_IDX_HI_DETAIL_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_RM_TIME;
-drop index ACT_IDX_HI_DETAIL_TASK_BYTEAR;
-drop index ACT_IDX_HI_DETAIL_VAR_INST_ID;
-
-drop index ACT_IDX_HI_IDENT_LNK_ROOT_PI;
-drop index ACT_IDX_HI_IDENT_LNK_USER;
-drop index ACT_IDX_HI_IDENT_LNK_GROUP;
-drop index ACT_IDX_HI_IDENT_LNK_TENANT_ID;
-drop index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY;
-drop index ACT_IDX_HI_IDENT_LINK_TASK;
-drop index ACT_IDX_HI_IDENT_LINK_RM_TIME;
-drop index ACT_IDX_HI_IDENT_LNK_TIMESTAMP;
-
-drop index ACT_IDX_HI_VARINST_ROOT_PI;
-drop index ACT_IDX_HI_PROCVAR_PROC_INST;
-drop index ACT_IDX_HI_PROCVAR_NAME_TYPE;
-drop index ACT_IDX_HI_CASEVAR_CASE_INST;
-drop index ACT_IDX_HI_VAR_INST_TENANT_ID;
-drop index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY;
-drop index ACT_IDX_HI_VARINST_BYTEAR;
-drop index ACT_IDX_HI_VARINST_RM_TIME;
-drop index ACT_IDX_HI_VAR_PI_NAME_TYPE;
-drop index ACT_IDX_HI_VARINST_NAME;
-drop index ACT_IDX_HI_VARINST_ACT_INST_ID;
-
-drop index ACT_IDX_HI_INCIDENT_TENANT_ID;
-drop index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY;
-drop index ACT_IDX_HI_INCIDENT_ROOT_PI;
-drop index ACT_IDX_HI_INCIDENT_PROCINST;
-drop index ACT_IDX_HI_INCIDENT_RM_TIME;
-drop index ACT_IDX_HI_INCIDENT_CREATE_TIME;
-drop index ACT_IDX_HI_INCIDENT_END_TIME;
-
-drop index ACT_IDX_HI_JOB_LOG_ROOT_PI;
-drop index ACT_IDX_HI_JOB_LOG_PROCINST;
-drop index ACT_IDX_HI_JOB_LOG_PROCDEF;
-drop index ACT_IDX_HI_JOB_LOG_TENANT_ID;
-drop index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID;
-drop index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY;
-drop index ACT_IDX_HI_JOB_LOG_EX_STACK;
-drop index ACT_IDX_HI_JOB_LOG_RM_TIME;
-drop index ACT_IDX_HI_JOB_LOG_JOB_CONF;
-
-drop index ACT_HI_EXT_TASK_LOG_ROOT_PI;
-drop index ACT_HI_EXT_TASK_LOG_PROCINST;
-drop index ACT_HI_EXT_TASK_LOG_PROCDEF;
-drop index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY;
-drop index ACT_HI_EXT_TASK_LOG_TENANT_ID;
-drop index ACT_IDX_HI_EXTTASKLOG_ERRORDET;
-drop index ACT_HI_EXT_TASK_LOG_RM_TIME;
-
-drop index ACT_HI_BAT_RM_TIME;
-
-drop index ACT_IDX_HI_OP_LOG_ROOT_PI;
-drop index ACT_IDX_HI_OP_LOG_PROCINST;
-drop index ACT_IDX_HI_OP_LOG_PROCDEF;
-drop index ACT_IDX_HI_OP_LOG_TASK;
-drop index ACT_IDX_HI_OP_LOG_RM_TIME;
-drop index ACT_IDX_HI_OP_LOG_TIMESTAMP;
-drop index ACT_IDX_HI_OP_LOG_USER_ID;
-drop index ACT_IDX_HI_OP_LOG_OP_TYPE;
-drop index ACT_IDX_HI_OP_LOG_ENTITY_TYPE;
-
-drop index ACT_IDX_HI_ATTACHMENT_CONTENT;
-drop index ACT_IDX_HI_ATTACHMENT_ROOT_PI;
-drop index ACT_IDX_HI_ATTACHMENT_PROCINST;
-drop index ACT_IDX_HI_ATTACHMENT_TASK;
-drop index ACT_IDX_HI_ATTACHMENT_RM_TIME;
-
-drop index ACT_IDX_HI_COMMENT_TASK;
-drop index ACT_IDX_HI_COMMENT_ROOT_PI;
-drop index ACT_IDX_HI_COMMENT_PROCINST;
-drop index ACT_IDX_HI_COMMENT_RM_TIME;
-
-drop table ACT_HI_PROCINST;
-drop table ACT_HI_ACTINST;
-drop table ACT_HI_VARINST;
-drop table ACT_HI_TASKINST;
-drop table ACT_HI_DETAIL;
-drop table ACT_HI_COMMENT;
-drop table ACT_HI_ATTACHMENT;
-drop table ACT_HI_OP_LOG;
-drop table ACT_HI_INCIDENT;
-drop table ACT_HI_JOB_LOG;
-drop table ACT_HI_BATCH;
-drop table ACT_HI_IDENTITYLINK;
-drop table ACT_HI_EXT_TASK_LOG;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.22.0.sql
similarity index 99%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.21.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.22.0.sql
index d2b878ac..5db62f93 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.21.0.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_engine_7.22.0.sql
@@ -404,6 +404,7 @@ drop index ACT_IDX_HI_PRO_INST_PROC_TIME;
drop index ACT_IDX_HI_PI_PDEFID_END_TIME;
drop index ACT_IDX_HI_PRO_INST_ROOT_PI;
drop index ACT_IDX_HI_PRO_INST_RM_TIME;
+drop index ACT_IDX_HI_PRO_RST_PRO_INST_ID;
drop index ACT_IDX_HI_ACTINST_ROOT_PI;
drop index ACT_IDX_HI_ACT_INST_START_END;
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.21.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.21.0.sql
deleted file mode 100644
index 9fed144e..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.21.0.sql
+++ /dev/null
@@ -1,50 +0,0 @@
---
--- 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.
---
-
-drop index ACT_IDX_MEMB_GROUP;
-drop index ACT_IDX_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB;
-drop index ACT_IDX_TENANT_MEMB_USER;
-drop index ACT_IDX_TENANT_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_GROUP;
-
-alter table ACT_ID_MEMBERSHIP
- drop constraint ACT_FK_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_FK_TENANT_MEMB_GROUP;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_UNIQ_TENANT_MEMB_USER;
-
-alter table ACT_ID_TENANT_MEMBER
- drop constraint ACT_UNIQ_TENANT_MEMB_GROUP;
-
-drop table ACT_ID_TENANT_MEMBER;
-drop table ACT_ID_TENANT;
-drop table ACT_ID_INFO;
-drop table ACT_ID_GROUP;
-drop table ACT_ID_MEMBERSHIP;
-drop table ACT_ID_USER;
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.20.0.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.22.0.sql
similarity index 100%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.20.0.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/drop/postgres_identity_7.22.0.sql
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.engine.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.engine.sql
deleted file mode 100644
index c1860ecb..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.engine.sql
+++ /dev/null
@@ -1,135 +0,0 @@
---
--- 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.
---
-
--- create case definition table --
-
-create table ACT_RE_CASE_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- primary key (ID_)
-);
-
--- create case execution table --
-
-create table ACT_RU_CASE_EXECUTION (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- SUPER_EXEC_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- ACT_ID_ varchar(255),
- PREV_STATE_ integer,
- CURRENT_STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create case sentry part table --
-
-create table ACT_RU_CASE_SENTRY_PART (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CASE_INST_ID_ varchar(64),
- CASE_EXEC_ID_ varchar(64),
- SENTRY_ID_ varchar(255),
- TYPE_ varchar(255),
- SOURCE_CASE_EXEC_ID_ varchar(64),
- STANDARD_EVENT_ varchar(255),
- SOURCE_ varchar(255),
- VARIABLE_EVENT_ varchar(255),
- VARIABLE_NAME_ varchar(255),
- SATISFIED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create index on business key --
-create index ACT_IDX_CASE_EXEC_BUSKEY on ACT_RU_CASE_EXECUTION(BUSINESS_KEY_);
-
--- create foreign key constraints on ACT_RU_CASE_EXECUTION --
-create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_PARENT on ACT_RU_CASE_EXECUTION(PARENT_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_EXE_CASE_DEF on ACT_RU_CASE_EXECUTION(CASE_DEF_ID_);
-alter table ACT_RU_CASE_EXECUTION
- add constraint ACT_FK_CASE_EXE_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_VARIABLE --
-create index ACT_IDX_VAR_CASE_EXE on ACT_RU_VARIABLE(CASE_EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_CASE_INST_ID on ACT_RU_VARIABLE(CASE_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
--- create foreign key constraints on ACT_RU_TASK --
-create index ACT_IDX_TASK_CASE_EXEC on ACT_RU_TASK(CASE_EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_EXE
- foreign key (CASE_EXECUTION_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_TASK_CASE_DEF_ID on ACT_RU_TASK(CASE_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_CASE_DEF
- foreign key (CASE_DEF_ID_)
- references ACT_RE_CASE_DEF(ID_);
-
--- create foreign key constraints on ACT_RU_CASE_SENTRY_PART --
-create index ACT_IDX_CASE_SENTRY_CASE_INST on ACT_RU_CASE_SENTRY_PART(CASE_INST_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_INST
- foreign key (CASE_INST_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_SENTRY_CASE_EXEC on ACT_RU_CASE_SENTRY_PART(CASE_EXEC_ID_);
-alter table ACT_RU_CASE_SENTRY_PART
- add constraint ACT_FK_CASE_SENTRY_CASE_EXEC
- foreign key (CASE_EXEC_ID_)
- references ACT_RU_CASE_EXECUTION(ID_);
-
-create index ACT_IDX_CASE_DEF_TENANT_ID on ACT_RE_CASE_DEF(TENANT_ID_);
-create index ACT_IDX_CASE_EXEC_TENANT_ID on ACT_RU_CASE_EXECUTION(TENANT_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.history.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.history.sql
deleted file mode 100644
index 0060fb24..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.case.history.sql
+++ /dev/null
@@ -1,61 +0,0 @@
---
--- 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.
---
-
-create table ACT_HI_CASEINST (
- ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64) not null,
- CREATE_TIME_ timestamp not null,
- CLOSE_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- CREATE_USER_ID_ varchar(255),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- primary key (ID_),
- unique (CASE_INST_ID_)
-);
-
-create table ACT_HI_CASEACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64) not null,
- CASE_INST_ID_ varchar(64) not null,
- CASE_ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- CASE_ACT_NAME_ varchar(255),
- CASE_ACT_TYPE_ varchar(255),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- STATE_ integer,
- REQUIRED_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_CAS_I_CLOSE on ACT_HI_CASEINST(CLOSE_TIME_);
-create index ACT_IDX_HI_CAS_I_BUSKEY on ACT_HI_CASEINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_CAS_I_TENANT_ID on ACT_HI_CASEINST(TENANT_ID_);
-create index ACT_IDX_HI_CAS_A_I_CREATE on ACT_HI_CASEACTINST(CREATE_TIME_);
-create index ACT_IDX_HI_CAS_A_I_END on ACT_HI_CASEACTINST(END_TIME_);
-create index ACT_IDX_HI_CAS_A_I_COMP on ACT_HI_CASEACTINST(CASE_ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_CAS_A_I_TENANT_ID on ACT_HI_CASEACTINST(TENANT_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.engine.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.engine.sql
deleted file mode 100644
index b2d22c1f..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.engine.sql
+++ /dev/null
@@ -1,59 +0,0 @@
---
--- 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.
---
-
--- create decision definition table --
-create table ACT_RE_DECISION_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- HISTORY_TTL_ integer,
- VERSION_TAG_ varchar(64),
- primary key (ID_)
-);
-
--- create decision requirements definition table --
-create table ACT_RE_DECISION_REQ_DEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-alter table ACT_RE_DECISION_DEF
- add constraint ACT_FK_DEC_REQ
- foreign key (DEC_REQ_ID_)
- references ACT_RE_DECISION_REQ_DEF(ID_);
-
-create index ACT_IDX_DEC_DEF_TENANT_ID on ACT_RE_DECISION_DEF(TENANT_ID_);
-create index ACT_IDX_DEC_DEF_REQ_ID on ACT_RE_DECISION_DEF(DEC_REQ_ID_);
-create index ACT_IDX_DEC_REQ_DEF_TENANT_ID on ACT_RE_DECISION_REQ_DEF(TENANT_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.history.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.history.sql
deleted file mode 100644
index e56d0fc3..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.decision.history.sql
+++ /dev/null
@@ -1,108 +0,0 @@
---
--- 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.
---
-
--- create history decision instance table --
-create table ACT_HI_DECINST (
- ID_ varchar(64) NOT NULL,
- DEC_DEF_ID_ varchar(64) NOT NULL,
- DEC_DEF_KEY_ varchar(255) NOT NULL,
- DEC_DEF_NAME_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- EVAL_TIME_ timestamp not null,
- REMOVAL_TIME_ timestamp,
- COLLECT_VALUE_ double precision,
- USER_ID_ varchar(255),
- ROOT_DEC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- DEC_REQ_ID_ varchar(64),
- DEC_REQ_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
--- create history decision input table --
-create table ACT_HI_DEC_IN (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
--- create history decision output table --
-create table ACT_HI_DEC_OUT (
- ID_ varchar(64) NOT NULL,
- DEC_INST_ID_ varchar(64) NOT NULL,
- CLAUSE_ID_ varchar(64),
- CLAUSE_NAME_ varchar(255),
- RULE_ID_ varchar(64),
- RULE_ORDER_ integer,
- VAR_NAME_ varchar(255),
- VAR_TYPE_ varchar(100),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-
-create index ACT_IDX_HI_DEC_INST_ID on ACT_HI_DECINST(DEC_DEF_ID_);
-create index ACT_IDX_HI_DEC_INST_KEY on ACT_HI_DECINST(DEC_DEF_KEY_);
-create index ACT_IDX_HI_DEC_INST_PI on ACT_HI_DECINST(PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_CI on ACT_HI_DECINST(CASE_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT on ACT_HI_DECINST(ACT_ID_);
-create index ACT_IDX_HI_DEC_INST_ACT_INST on ACT_HI_DECINST(ACT_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_TIME on ACT_HI_DECINST(EVAL_TIME_);
-create index ACT_IDX_HI_DEC_INST_TENANT_ID on ACT_HI_DECINST(TENANT_ID_);
-create index ACT_IDX_HI_DEC_INST_ROOT_ID on ACT_HI_DECINST(ROOT_DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_ID on ACT_HI_DECINST(DEC_REQ_ID_);
-create index ACT_IDX_HI_DEC_INST_REQ_KEY on ACT_HI_DECINST(DEC_REQ_KEY_);
-create index ACT_IDX_HI_DEC_INST_ROOT_PI on ACT_HI_DECINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_INST_RM_TIME on ACT_HI_DECINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_IN_INST on ACT_HI_DEC_IN(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_CLAUSE on ACT_HI_DEC_IN(DEC_INST_ID_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_IN_ROOT_PI on ACT_HI_DEC_IN(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_IN_RM_TIME on ACT_HI_DEC_IN(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_DEC_OUT_INST on ACT_HI_DEC_OUT(DEC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RULE on ACT_HI_DEC_OUT(RULE_ORDER_, CLAUSE_ID_);
-create index ACT_IDX_HI_DEC_OUT_ROOT_PI on ACT_HI_DEC_OUT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DEC_OUT_RM_TIME on ACT_HI_DEC_OUT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.engine.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.engine.sql
deleted file mode 100644
index 7a281522..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.engine.sql
+++ /dev/null
@@ -1,589 +0,0 @@
---
--- 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.
---
-
-create table ACT_GE_PROPERTY (
- NAME_ varchar(64),
- VALUE_ varchar(300),
- REV_ integer,
- primary key (NAME_)
-);
-
-insert into ACT_GE_PROPERTY
-values ('schema.version', 'fox', 1);
-
-insert into ACT_GE_PROPERTY
-values ('schema.history', 'create(fox)', 1);
-
-insert into ACT_GE_PROPERTY
-values ('next.dbid', '1', 1);
-
-insert into ACT_GE_PROPERTY
-values ('deployment.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('history.cleanup.job.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('startup.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('telemetry.lock', '0', 1);
-
-insert into ACT_GE_PROPERTY
-values ('installationId.lock', '0', 1);
-
-create table ACT_GE_BYTEARRAY (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- BYTES_ bytea,
- GENERATED_ boolean,
- TENANT_ID_ varchar(64),
- TYPE_ integer,
- CREATE_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_GE_SCHEMA_LOG (
- ID_ varchar(64),
- TIMESTAMP_ timestamp,
- VERSION_ varchar(255),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('0', CURRENT_TIMESTAMP, '7.16.0');
-
-create table ACT_RE_DEPLOYMENT (
- ID_ varchar(64),
- NAME_ varchar(255),
- DEPLOY_TIME_ timestamp,
- SOURCE_ varchar(255),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EXECUTION (
- ID_ varchar(64),
- REV_ integer,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- BUSINESS_KEY_ varchar(255),
- PARENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- SUPER_EXEC_ varchar(64),
- SUPER_CASE_EXEC_ varchar(64),
- CASE_INST_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- IS_ACTIVE_ boolean,
- IS_CONCURRENT_ boolean,
- IS_SCOPE_ boolean,
- IS_EVENT_SCOPE_ boolean,
- SUSPENSION_STATE_ integer,
- CACHED_ENT_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_JOB (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- TYPE_ varchar(255) NOT NULL,
- LOCK_EXP_TIME_ timestamp,
- LOCK_OWNER_ varchar(255),
- EXCLUSIVE_ boolean,
- EXECUTION_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- RETRIES_ integer,
- EXCEPTION_STACK_ID_ varchar(64),
- EXCEPTION_MSG_ varchar(4000),
- FAILED_ACT_ID_ varchar(255),
- DUEDATE_ timestamp,
- REPEAT_ varchar(255),
- REPEAT_OFFSET_ bigint DEFAULT 0,
- HANDLER_TYPE_ varchar(255),
- HANDLER_CFG_ varchar(4000),
- DEPLOYMENT_ID_ varchar(64),
- SUSPENSION_STATE_ integer NOT NULL DEFAULT 1,
- JOB_DEF_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_JOBDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- JOB_TYPE_ varchar(255) NOT NULL,
- JOB_CONFIGURATION_ varchar(255),
- SUSPENSION_STATE_ integer,
- JOB_PRIORITY_ bigint,
- TENANT_ID_ varchar(64),
- DEPLOYMENT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RE_PROCDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- CATEGORY_ varchar(255),
- NAME_ varchar(255),
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- DGRM_RESOURCE_NAME_ varchar(4000),
- HAS_START_FORM_KEY_ boolean,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- VERSION_TAG_ varchar(64),
- HISTORY_TTL_ integer,
- STARTABLE_ boolean NOT NULL default TRUE,
- primary key (ID_)
-);
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_TASK (
- ID_ varchar(64),
- REV_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- TASK_DEF_KEY_ varchar(255),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- DELEGATION_ varchar(64),
- PRIORITY_ integer,
- CREATE_TIME_ timestamp,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- SUSPENSION_STATE_ integer,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_IDENTITYLINK (
- ID_ varchar(64),
- REV_ integer,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_DEF_ID_ varchar (64),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_VARIABLE (
- ID_ varchar(64) not null,
- REV_ integer,
- TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- TASK_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- VAR_SCOPE_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- IS_CONCURRENT_LOCAL_ boolean,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_EVENT_SUBSCR (
- ID_ varchar(64) not null,
- REV_ integer,
- EVENT_TYPE_ varchar(255) not null,
- EVENT_NAME_ varchar(255),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- CONFIGURATION_ varchar(255),
- CREATED_ timestamp not null,
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_INCIDENT (
- ID_ varchar(64) not null,
- REV_ integer not null,
- INCIDENT_TIMESTAMP_ timestamp not null,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- EXECUTION_ID_ varchar(64),
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_RU_AUTHORIZATION (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ integer not null,
- GROUP_ID_ varchar(255),
- USER_ID_ varchar(255),
- RESOURCE_TYPE_ integer not null,
- RESOURCE_ID_ varchar(255),
- PERMS_ integer,
- REMOVAL_TIME_ timestamp,
- ROOT_PROC_INST_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_RU_FILTER (
- ID_ varchar(64) not null,
- REV_ integer not null,
- RESOURCE_TYPE_ varchar(255) not null,
- NAME_ varchar(255) not null,
- OWNER_ varchar(255),
- QUERY_ TEXT not null,
- PROPERTIES_ TEXT,
- primary key (ID_)
-);
-
-create table ACT_RU_METER_LOG (
- ID_ varchar(64) not null,
- NAME_ varchar(64) not null,
- REPORTER_ varchar(255),
- VALUE_ bigint,
- TIMESTAMP_ timestamp,
- MILLISECONDS_ bigint DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_RU_EXT_TASK (
- ID_ varchar(64) not null,
- REV_ integer not null,
- WORKER_ID_ varchar(255),
- TOPIC_NAME_ varchar(255),
- RETRIES_ integer,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- LOCK_EXP_TIME_ timestamp,
- SUSPENSION_STATE_ integer,
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- PRIORITY_ bigint NOT NULL DEFAULT 0,
- primary key (ID_)
-);
-
-create table ACT_RU_BATCH (
- ID_ varchar(64) not null,
- REV_ integer not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_CREATED_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- SUSPENSION_STATE_ integer,
- CONFIGURATION_ varchar(255),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- primary key (ID_)
-);
-
-create index ACT_IDX_EXE_ROOT_PI on ACT_RU_EXECUTION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
-create index ACT_IDX_EXEC_TENANT_ID on ACT_RU_EXECUTION(TENANT_ID_);
-create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
-create index ACT_IDX_TASK_ASSIGNEE on ACT_RU_TASK(ASSIGNEE_);
-create index ACT_IDX_TASK_OWNER on ACT_RU_TASK(OWNER_);
-create index ACT_IDX_TASK_TENANT_ID on ACT_RU_TASK(TENANT_ID_);
-create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
-create index ACT_IDX_EVENT_SUBSCR_TENANT_ID on ACT_RU_EVENT_SUBSCR(TENANT_ID_);
-
-create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);
-create index ACT_IDX_VARIABLE_TENANT_ID on ACT_RU_VARIABLE(TENANT_ID_);
-create index ACT_IDX_VARIABLE_TASK_NAME_TYPE on ACT_RU_VARIABLE(TASK_ID_, NAME_, TYPE_);
-
-create index ACT_IDX_INC_CONFIGURATION on ACT_RU_INCIDENT(CONFIGURATION_);
-create index ACT_IDX_INC_TENANT_ID on ACT_RU_INCIDENT(TENANT_ID_);
--- CAM-5914
-create index ACT_IDX_JOB_EXECUTION_ID on ACT_RU_JOB(EXECUTION_ID_);
-create index ACT_IDX_JOB_HANDLER on ACT_RU_JOB(HANDLER_TYPE_,HANDLER_CFG_);
-create index ACT_IDX_JOB_PROCINST on ACT_RU_JOB(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_JOB_TENANT_ID on ACT_RU_JOB(TENANT_ID_);
-create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF(TENANT_ID_);
-
--- new metric milliseconds column
-CREATE INDEX ACT_IDX_METER_LOG_MS ON ACT_RU_METER_LOG(MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_NAME_MS ON ACT_RU_METER_LOG(NAME_, MILLISECONDS_);
-CREATE INDEX ACT_IDX_METER_LOG_REPORT ON ACT_RU_METER_LOG(NAME_, REPORTER_, MILLISECONDS_);
-
--- old metric timestamp column
-CREATE INDEX ACT_IDX_METER_LOG_TIME ON ACT_RU_METER_LOG(TIMESTAMP_);
-CREATE INDEX ACT_IDX_METER_LOG ON ACT_RU_METER_LOG(NAME_, TIMESTAMP_);
-
--- task metric timestamp column
-CREATE INDEX ACT_IDX_TASK_METER_LOG_TIME ON ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
-create index ACT_IDX_EXT_TASK_TOPIC on ACT_RU_EXT_TASK(TOPIC_NAME_);
-create index ACT_IDX_EXT_TASK_TENANT_ID on ACT_RU_EXT_TASK(TENANT_ID_);
-create index ACT_IDX_EXT_TASK_PRIORITY ON ACT_RU_EXT_TASK(PRIORITY_);
-create index ACT_IDX_EXT_TASK_ERR_DETAILS ON ACT_RU_EXT_TASK(ERROR_DETAILS_ID_);
-create index ACT_IDX_AUTH_GROUP_ID on ACT_RU_AUTHORIZATION(GROUP_ID_);
-create index ACT_IDX_JOB_JOB_DEF_ID on ACT_RU_JOB(JOB_DEF_ID_);
-
-create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
-alter table ACT_GE_BYTEARRAY
- add constraint ACT_FK_BYTEARR_DEPL
- foreign key (DEPLOYMENT_ID_)
- references ACT_RE_DEPLOYMENT (ID_);
-
-create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PARENT
- foreign key (PARENT_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_SUPER
- foreign key (SUPER_EXEC_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
-alter table ACT_RU_EXECUTION
- add constraint ACT_FK_EXE_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-
-create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_TSKASS_TASK
- foreign key (TASK_ID_)
- references ACT_RU_TASK (ID_);
-
-create index ACT_IDX_ATHRZ_PROCEDEF on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
-alter table ACT_RU_IDENTITYLINK
- add constraint ACT_FK_ATHRZ_PROCEDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
-alter table ACT_RU_TASK
- add constraint ACT_FK_TASK_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BYTEARRAY
- foreign key (BYTEARRAY_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
-alter table ACT_RU_JOB
- add constraint ACT_FK_JOB_EXCEPTION
- foreign key (EXCEPTION_STACK_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
-alter table ACT_RU_EVENT_SUBSCR
- add constraint ACT_FK_EVENT_EXEC
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION(ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCINST
- foreign key (PROC_INST_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_PROCDEF
- foreign key (PROC_DEF_ID_)
- references ACT_RE_PROCDEF (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_CAUSE
- foreign key (CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_RCAUSE
- foreign key (ROOT_CAUSE_INCIDENT_ID_)
- references ACT_RU_INCIDENT (ID_);
-
-create index ACT_IDX_INC_JOB_DEF on ACT_RU_INCIDENT(JOB_DEF_ID_);
-alter table ACT_RU_INCIDENT
- add constraint ACT_FK_INC_JOB_DEF
- foreign key (JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_AUTH_USER on ACT_RU_AUTHORIZATION(TYPE_,USER_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_AUTH_GROUP on ACT_RU_AUTHORIZATION(TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_);
-create unique index ACT_UNIQ_VARIABLE on ACT_RU_VARIABLE(VAR_SCOPE_, NAME_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_EXE
- foreign key (EXECUTION_ID_)
- references ACT_RU_EXECUTION (ID_);
-
-create index ACT_IDX_BATCH_SEED_JOB_DEF ON ACT_RU_BATCH(SEED_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_SEED_JOB_DEF
- foreign key (SEED_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_MONITOR_JOB_DEF ON ACT_RU_BATCH(MONITOR_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_MONITOR_JOB_DEF
- foreign key (MONITOR_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-create index ACT_IDX_BATCH_JOB_DEF ON ACT_RU_BATCH(BATCH_JOB_DEF_ID_);
-alter table ACT_RU_BATCH
- add constraint ACT_FK_BATCH_JOB_DEF
- foreign key (BATCH_JOB_DEF_ID_)
- references ACT_RU_JOBDEF (ID_);
-
-alter table ACT_RU_EXT_TASK
- add constraint ACT_FK_EXT_TASK_ERROR_DETAILS
- foreign key (ERROR_DETAILS_ID_)
- references ACT_GE_BYTEARRAY (ID_);
-
-create index ACT_IDX_BATCH_ID ON ACT_RU_VARIABLE(BATCH_ID_);
-alter table ACT_RU_VARIABLE
- add constraint ACT_FK_VAR_BATCH
- foreign key (BATCH_ID_)
- references ACT_RU_BATCH (ID_);
-
--- indexes for deadlock problems - https://app.camunda.com/jira/browse/CAM-2567 --
-create index ACT_IDX_INC_CAUSEINCID on ACT_RU_INCIDENT(CAUSE_INCIDENT_ID_);
-create index ACT_IDX_INC_EXID on ACT_RU_INCIDENT(EXECUTION_ID_);
-create index ACT_IDX_INC_PROCDEFID on ACT_RU_INCIDENT(PROC_DEF_ID_);
-create index ACT_IDX_INC_PROCINSTID on ACT_RU_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_INC_ROOTCAUSEINCID on ACT_RU_INCIDENT(ROOT_CAUSE_INCIDENT_ID_);
--- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 --
-create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
--- index to prevent deadlock on fk constraint - https://app.camunda.com/jira/browse/CAM-5440 --
-create index ACT_IDX_EXT_TASK_EXEC on ACT_RU_EXT_TASK(EXECUTION_ID_);
-
--- indexes to improve deployment
-create index ACT_IDX_BYTEARRAY_ROOT_PI on ACT_GE_BYTEARRAY(ROOT_PROC_INST_ID_);
-create index ACT_IDX_BYTEARRAY_RM_TIME on ACT_GE_BYTEARRAY(REMOVAL_TIME_);
-create index ACT_IDX_BYTEARRAY_NAME on ACT_GE_BYTEARRAY(NAME_);
-create index ACT_IDX_DEPLOYMENT_NAME on ACT_RE_DEPLOYMENT(NAME_);
-create index ACT_IDX_DEPLOYMENT_TENANT_ID on ACT_RE_DEPLOYMENT(TENANT_ID_);
-create index ACT_IDX_JOBDEF_PROC_DEF_ID ON ACT_RU_JOBDEF(PROC_DEF_ID_);
-create index ACT_IDX_JOB_HANDLER_TYPE ON ACT_RU_JOB(HANDLER_TYPE_);
-create index ACT_IDX_EVENT_SUBSCR_EVT_NAME ON ACT_RU_EVENT_SUBSCR(EVENT_NAME_);
-create index ACT_IDX_PROCDEF_DEPLOYMENT_ID ON ACT_RE_PROCDEF(DEPLOYMENT_ID_);
-create index ACT_IDX_PROCDEF_TENANT_ID ON ACT_RE_PROCDEF(TENANT_ID_);
-create index ACT_IDX_PROCDEF_VER_TAG ON ACT_RE_PROCDEF(VERSION_TAG_);
-
--- indices for history cleanup: https://jira.camunda.com/browse/CAM-11616
-create index ACT_IDX_AUTH_ROOT_PI on ACT_RU_AUTHORIZATION(ROOT_PROC_INST_ID_);
-create index ACT_IDX_AUTH_RM_TIME on ACT_RU_AUTHORIZATION(REMOVAL_TIME_);
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.history.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.history.sql
deleted file mode 100644
index e3a166ae..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.history.sql
+++ /dev/null
@@ -1,442 +0,0 @@
---
--- 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.
---
-
-create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- SUPER_CASE_INSTANCE_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(255),
- primary key (ID_),
- unique (PROC_INST_ID_)
-);
-
-create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PARENT_ACT_INST_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- CALL_CASE_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- ACT_INST_STATE_ integer,
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- TASK_DEF_KEY_ varchar(255),
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FOLLOW_UP_DATE_ timestamp,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- CREATE_TIME_ timestamp,
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- TENANT_ID_ varchar(64),
- STATE_ varchar(20),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_KEY_ varchar(255),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- VAR_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(64),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- OPERATION_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- INITIAL_ boolean,
- primary key (ID_)
-);
-
-create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- GROUP_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- OPERATION_TYPE_ varchar(64),
- ASSIGNER_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ bytea,
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_OP_LOG (
- ID_ varchar(64) not null,
- DEPLOYMENT_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CASE_DEF_ID_ varchar(64),
- CASE_INST_ID_ varchar(64),
- CASE_EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- JOB_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- BATCH_ID_ varchar(64),
- USER_ID_ varchar(255),
- TIMESTAMP_ timestamp not null,
- OPERATION_TYPE_ varchar(64),
- OPERATION_ID_ varchar(64),
- ENTITY_TYPE_ varchar(30),
- PROPERTY_ varchar(64),
- ORG_VALUE_ varchar(4000),
- NEW_VALUE_ varchar(4000),
- TENANT_ID_ varchar(64),
- REMOVAL_TIME_ timestamp,
- CATEGORY_ varchar(64),
- EXTERNAL_TASK_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- primary key (ID_)
-);
-
-create table ACT_HI_INCIDENT (
- ID_ varchar(64) not null,
- PROC_DEF_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- CREATE_TIME_ timestamp not null,
- END_TIME_ timestamp,
- INCIDENT_MSG_ varchar(4000),
- INCIDENT_TYPE_ varchar(255) not null,
- ACTIVITY_ID_ varchar(255),
- FAILED_ACTIVITY_ID_ varchar(255),
- CAUSE_INCIDENT_ID_ varchar(64),
- ROOT_CAUSE_INCIDENT_ID_ varchar(64),
- CONFIGURATION_ varchar(255),
- HISTORY_CONFIGURATION_ varchar(255),
- INCIDENT_STATE_ integer,
- TENANT_ID_ varchar(64),
- JOB_DEF_ID_ varchar(64),
- ANNOTATION_ varchar(4000),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_JOB_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- JOB_ID_ varchar(64) not null,
- JOB_DUEDATE_ timestamp,
- JOB_RETRIES_ integer,
- JOB_PRIORITY_ bigint NOT NULL DEFAULT 0,
- JOB_EXCEPTION_MSG_ varchar(4000),
- JOB_EXCEPTION_STACK_ID_ varchar(64),
- JOB_STATE_ integer,
- JOB_DEF_ID_ varchar(64),
- JOB_DEF_TYPE_ varchar(255),
- JOB_DEF_CONFIGURATION_ varchar(255),
- ACT_ID_ varchar(255),
- FAILED_ACT_ID_ varchar(255),
- EXECUTION_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROCESS_INSTANCE_ID_ varchar(64),
- PROCESS_DEF_ID_ varchar(64),
- PROCESS_DEF_KEY_ varchar(255),
- DEPLOYMENT_ID_ varchar(64),
- SEQUENCE_COUNTER_ bigint,
- TENANT_ID_ varchar(64),
- HOSTNAME_ varchar(255),
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_BATCH (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TOTAL_JOBS_ integer,
- JOBS_PER_SEED_ integer,
- INVOCATIONS_PER_JOB_ integer,
- SEED_JOB_DEF_ID_ varchar(64),
- MONITOR_JOB_DEF_ID_ varchar(64),
- BATCH_JOB_DEF_ID_ varchar(64),
- TENANT_ID_ varchar(64),
- CREATE_USER_ID_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create table ACT_HI_EXT_TASK_LOG (
- ID_ varchar(64) not null,
- TIMESTAMP_ timestamp not null,
- EXT_TASK_ID_ varchar(64) not null,
- RETRIES_ integer,
- TOPIC_NAME_ varchar(255),
- WORKER_ID_ varchar(255),
- PRIORITY_ bigint not null default 0,
- ERROR_MSG_ varchar(4000),
- ERROR_DETAILS_ID_ varchar(64),
- ACT_ID_ varchar(255),
- ACT_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ROOT_PROC_INST_ID_ varchar(64),
- PROC_DEF_ID_ varchar(64),
- PROC_DEF_KEY_ varchar(255),
- TENANT_ID_ varchar(64),
- STATE_ integer,
- REMOVAL_TIME_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
-create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
-create index ACT_IDX_HI_PRO_INST_TENANT_ID on ACT_HI_PROCINST(TENANT_ID_);
-create index ACT_IDX_HI_PRO_INST_PROC_DEF_KEY on ACT_HI_PROCINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_PRO_INST_PROC_TIME on ACT_HI_PROCINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_PI_PDEFID_END_TIME on ACT_HI_PROCINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_PRO_INST_ROOT_PI on ACT_HI_PROCINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PRO_INST_RM_TIME on ACT_HI_PROCINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_ACTINST_ROOT_PI on ACT_HI_ACTINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ACT_INST_START_END on ACT_HI_ACTINST(START_TIME_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
-create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
-create index ACT_IDX_HI_ACT_INST_COMP on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_, END_TIME_, ID_);
-create index ACT_IDX_HI_ACT_INST_STATS on ACT_HI_ACTINST(PROC_DEF_ID_, PROC_INST_ID_, ACT_ID_, END_TIME_, ACT_INST_STATE_);
-create index ACT_IDX_HI_ACT_INST_TENANT_ID on ACT_HI_ACTINST(TENANT_ID_);
-create index ACT_IDX_HI_ACT_INST_PROC_DEF_KEY on ACT_HI_ACTINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_AI_PDEFID_END_TIME on ACT_HI_ACTINST(PROC_DEF_ID_, END_TIME_);
-create index ACT_IDX_HI_ACT_INST_RM_TIME on ACT_HI_ACTINST(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_TASKINST_ROOT_PI on ACT_HI_TASKINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_TENANT_ID on ACT_HI_TASKINST(TENANT_ID_);
-create index ACT_IDX_HI_TASK_INST_PROC_DEF_KEY on ACT_HI_TASKINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_TASKINST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
-create index ACT_IDX_HI_TASKINSTID_PROCINST on ACT_HI_TASKINST(ID_,PROC_INST_ID_);
-create index ACT_IDX_HI_TASK_INST_RM_TIME on ACT_HI_TASKINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_TASK_INST_START on ACT_HI_TASKINST(START_TIME_);
-create index ACT_IDX_HI_TASK_INST_END on ACT_HI_TASKINST(END_TIME_);
-
-create index ACT_IDX_HI_DETAIL_ROOT_PI on ACT_HI_DETAIL(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
-create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_INST on ACT_HI_DETAIL(CASE_INST_ID_);
-create index ACT_IDX_HI_DETAIL_CASE_EXEC on ACT_HI_DETAIL(CASE_EXECUTION_ID_);
-create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
-create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
-create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
-create index ACT_IDX_HI_DETAIL_TENANT_ID on ACT_HI_DETAIL(TENANT_ID_);
-create index ACT_IDX_HI_DETAIL_PROC_DEF_KEY on ACT_HI_DETAIL(PROC_DEF_KEY_);
-create index ACT_IDX_HI_DETAIL_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_);
-create index ACT_IDX_HI_DETAIL_RM_TIME on ACT_HI_DETAIL(REMOVAL_TIME_);
-create index ACT_IDX_HI_DETAIL_TASK_BYTEAR on ACT_HI_DETAIL(BYTEARRAY_ID_, TASK_ID_);
-create index ACT_IDX_HI_DETAIL_VAR_INST_ID on ACT_HI_DETAIL(VAR_INST_ID_);
-
-create index ACT_IDX_HI_IDENT_LNK_ROOT_PI on ACT_HI_IDENTITYLINK(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
-create index ACT_IDX_HI_IDENT_LNK_GROUP on ACT_HI_IDENTITYLINK(GROUP_ID_);
-create index ACT_IDX_HI_IDENT_LNK_TENANT_ID on ACT_HI_IDENTITYLINK(TENANT_ID_);
-create index ACT_IDX_HI_IDENT_LNK_PROC_DEF_KEY on ACT_HI_IDENTITYLINK(PROC_DEF_KEY_);
-create index ACT_IDX_HI_IDENT_LINK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
-create index ACT_IDX_HI_IDENT_LINK_RM_TIME on ACT_HI_IDENTITYLINK(REMOVAL_TIME_);
-create index ACT_IDX_HI_IDENT_LNK_TIMESTAMP on ACT_HI_IDENTITYLINK(TIMESTAMP_);
-
-create index ACT_IDX_HI_VARINST_ROOT_PI on ACT_HI_VARINST(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
-create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
-create index ACT_IDX_HI_CASEVAR_CASE_INST on ACT_HI_VARINST(CASE_INST_ID_);
-create index ACT_IDX_HI_VAR_INST_TENANT_ID on ACT_HI_VARINST(TENANT_ID_);
-create index ACT_IDX_HI_VAR_INST_PROC_DEF_KEY on ACT_HI_VARINST(PROC_DEF_KEY_);
-create index ACT_IDX_HI_VARINST_BYTEAR on ACT_HI_VARINST(BYTEARRAY_ID_);
-create index ACT_IDX_HI_VARINST_RM_TIME on ACT_HI_VARINST(REMOVAL_TIME_);
-create index ACT_IDX_HI_VAR_PI_NAME_TYPE on ACT_HI_VARINST(PROC_INST_ID_, NAME_, VAR_TYPE_);
-
-create index ACT_IDX_HI_INCIDENT_TENANT_ID on ACT_HI_INCIDENT(TENANT_ID_);
-create index ACT_IDX_HI_INCIDENT_PROC_DEF_KEY on ACT_HI_INCIDENT(PROC_DEF_KEY_);
-create index ACT_IDX_HI_INCIDENT_ROOT_PI on ACT_HI_INCIDENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_PROCINST on ACT_HI_INCIDENT(PROC_INST_ID_);
-create index ACT_IDX_HI_INCIDENT_RM_TIME on ACT_HI_INCIDENT(REMOVAL_TIME_);
-create index ACT_IDX_HI_INCIDENT_CREATE_TIME on ACT_HI_INCIDENT(CREATE_TIME_);
-create index ACT_IDX_HI_INCIDENT_END_TIME on ACT_HI_INCIDENT(END_TIME_);
-
-create index ACT_IDX_HI_JOB_LOG_ROOT_PI on ACT_HI_JOB_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCINST on ACT_HI_JOB_LOG(PROCESS_INSTANCE_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROCDEF on ACT_HI_JOB_LOG(PROCESS_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_TENANT_ID on ACT_HI_JOB_LOG(TENANT_ID_);
-create index ACT_IDX_HI_JOB_LOG_JOB_DEF_ID on ACT_HI_JOB_LOG(JOB_DEF_ID_);
-create index ACT_IDX_HI_JOB_LOG_PROC_DEF_KEY on ACT_HI_JOB_LOG(PROCESS_DEF_KEY_);
-create index ACT_IDX_HI_JOB_LOG_EX_STACK on ACT_HI_JOB_LOG(JOB_EXCEPTION_STACK_ID_);
-create index ACT_IDX_HI_JOB_LOG_RM_TIME on ACT_HI_JOB_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_JOB_LOG_JOB_CONF on ACT_HI_JOB_LOG(JOB_DEF_CONFIGURATION_);
-
-create index ACT_HI_BAT_RM_TIME on ACT_HI_BATCH(REMOVAL_TIME_);
-
-create index ACT_HI_EXT_TASK_LOG_ROOT_PI on ACT_HI_EXT_TASK_LOG(ROOT_PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCINST on ACT_HI_EXT_TASK_LOG(PROC_INST_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROCDEF on ACT_HI_EXT_TASK_LOG(PROC_DEF_ID_);
-create index ACT_HI_EXT_TASK_LOG_PROC_DEF_KEY on ACT_HI_EXT_TASK_LOG(PROC_DEF_KEY_);
-create index ACT_HI_EXT_TASK_LOG_TENANT_ID on ACT_HI_EXT_TASK_LOG(TENANT_ID_);
-create index ACT_IDX_HI_EXTTASKLOG_ERRORDET on ACT_HI_EXT_TASK_LOG(ERROR_DETAILS_ID_);
-create index ACT_HI_EXT_TASK_LOG_RM_TIME on ACT_HI_EXT_TASK_LOG(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_OP_LOG_ROOT_PI on ACT_HI_OP_LOG(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCINST on ACT_HI_OP_LOG(PROC_INST_ID_);
-create index ACT_IDX_HI_OP_LOG_PROCDEF on ACT_HI_OP_LOG(PROC_DEF_ID_);
-create index ACT_IDX_HI_OP_LOG_TASK on ACT_HI_OP_LOG(TASK_ID_);
-create index ACT_IDX_HI_OP_LOG_RM_TIME on ACT_HI_OP_LOG(REMOVAL_TIME_);
-create index ACT_IDX_HI_OP_LOG_TIMESTAMP on ACT_HI_OP_LOG(TIMESTAMP_);
-create index ACT_IDX_HI_OP_LOG_USER_ID on ACT_HI_OP_LOG(USER_ID_);
-create index ACT_IDX_HI_OP_LOG_OP_TYPE on ACT_HI_OP_LOG(OPERATION_TYPE_);
-create index ACT_IDX_HI_OP_LOG_ENTITY_TYPE on ACT_HI_OP_LOG(ENTITY_TYPE_);
-
-create index ACT_IDX_HI_ATTACHMENT_CONTENT on ACT_HI_ATTACHMENT(CONTENT_ID_);
-create index ACT_IDX_HI_ATTACHMENT_ROOT_PI on ACT_HI_ATTACHMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_PROCINST on ACT_HI_ATTACHMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_ATTACHMENT_TASK on ACT_HI_ATTACHMENT(TASK_ID_);
-create index ACT_IDX_HI_ATTACHMENT_RM_TIME on ACT_HI_ATTACHMENT(REMOVAL_TIME_);
-
-create index ACT_IDX_HI_COMMENT_TASK on ACT_HI_COMMENT(TASK_ID_);
-create index ACT_IDX_HI_COMMENT_ROOT_PI on ACT_HI_COMMENT(ROOT_PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_PROCINST on ACT_HI_COMMENT(PROC_INST_ID_);
-create index ACT_IDX_HI_COMMENT_RM_TIME on ACT_HI_COMMENT(REMOVAL_TIME_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.identity.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.identity.sql
deleted file mode 100644
index 36a8270b..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/baseline/liquibase.cockroachdb.create.identity.sql
+++ /dev/null
@@ -1,105 +0,0 @@
---
--- 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.
---
-
-create table ACT_ID_GROUP (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- TYPE_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_MEMBERSHIP (
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (USER_ID_, GROUP_ID_)
-);
-
-create table ACT_ID_USER (
- ID_ varchar(64),
- REV_ integer,
- FIRST_ varchar(255),
- LAST_ varchar(255),
- EMAIL_ varchar(255),
- PWD_ varchar(255),
- SALT_ varchar(255),
- LOCK_EXP_TIME_ timestamp,
- ATTEMPTS_ integer,
- PICTURE_ID_ varchar(64),
- primary key (ID_)
-);
-
-create table ACT_ID_INFO (
- ID_ varchar(64),
- REV_ integer,
- USER_ID_ varchar(64),
- TYPE_ varchar(64),
- KEY_ varchar(255),
- VALUE_ varchar(255),
- PASSWORD_ bytea,
- PARENT_ID_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT (
- ID_ varchar(64),
- REV_ integer,
- NAME_ varchar(255),
- primary key (ID_)
-);
-
-create table ACT_ID_TENANT_MEMBER (
- ID_ varchar(64) not null,
- TENANT_ID_ varchar(64) not null,
- USER_ID_ varchar(64),
- GROUP_ID_ varchar(64),
- primary key (ID_)
-);
-
-create index ACT_IDX_MEMB_GROUP on ACT_ID_MEMBERSHIP(GROUP_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
-
-create index ACT_IDX_MEMB_USER on ACT_ID_MEMBERSHIP(USER_ID_);
-alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
--- create CRDB uniqueness constraints with index syntax since they must be dropped as indexes
-create unique index ACT_UNIQ_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(TENANT_ID_, USER_ID_);
-create unique index ACT_UNIQ_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(TENANT_ID_, GROUP_ID_);
-
-create index ACT_IDX_TENANT_MEMB on ACT_ID_TENANT_MEMBER(TENANT_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB
- foreign key (TENANT_ID_)
- references ACT_ID_TENANT (ID_);
-
-create index ACT_IDX_TENANT_MEMB_USER on ACT_ID_TENANT_MEMBER(USER_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
-
-create index ACT_IDX_TENANT_MEMB_GROUP on ACT_ID_TENANT_MEMBER(GROUP_ID_);
-alter table ACT_ID_TENANT_MEMBER
- add constraint ACT_FK_TENANT_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/camunda-changelog.xml b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/camunda-changelog.xml
index fb7d5537..029d0043 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/camunda-changelog.xml
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/camunda-changelog.xml
@@ -22,7 +22,6 @@
xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
-
@@ -133,4 +132,16 @@
+
+
+
+
+
+
+
+
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.17_to_7.18.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.17_to_7.18.sql
deleted file mode 100644
index 7cb0ee83..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.17_to_7.18.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- 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.
---
-
--- https://jira.camunda.com/browse/CAM-14303 --
-ALTER TABLE ACT_RU_TASK
- ADD COLUMN LAST_UPDATED_ timestamp;
-
--- table writes should ideally come after schema changes, see https://github.com/cockroachdb/cockroach/pull/58182
-
--- https://jira.camunda.com/browse/CAM-14303 --
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('700', CURRENT_TIMESTAMP, '7.18.0');
-
--- https://jira.camunda.com/browse/CAM-14721
-ALTER TABLE ACT_RU_BATCH
- ADD COLUMN START_TIME_ timestamp;
-
--- https://jira.camunda.com/browse/CAM-14722
-ALTER TABLE ACT_RU_BATCH
- ADD COLUMN EXEC_START_TIME_ timestamp;
-ALTER TABLE ACT_HI_BATCH
- ADD COLUMN EXEC_START_TIME_ timestamp;
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.18_to_7.19.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.18_to_7.19.sql
deleted file mode 100644
index f55ca453..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.18_to_7.19.sql
+++ /dev/null
@@ -1,19 +0,0 @@
---
--- 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 ('800', CURRENT_TIMESTAMP, '7.19.0');
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.19_to_7.20.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.19_to_7.20.sql
deleted file mode 100644
index a5cb12ce..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.19_to_7.20.sql
+++ /dev/null
@@ -1,19 +0,0 @@
---
--- 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 ('900', CURRENT_TIMESTAMP, '7.20.0');
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/db2_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/db2_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/db2_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/h2_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/h2_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/h2_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mariadb_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mariadb_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mariadb_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.20_to_7.21.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mssql_engine_7.21_to_7.22.sql
similarity index 66%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.20_to_7.21.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mssql_engine_7.21_to_7.22.sql
index 096481ce..66ea5d03 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.20_to_7.21.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mssql_engine_7.21_to_7.22.sql
@@ -15,15 +15,15 @@
-- limitations under the License.
--
--- table writes should ideally come after schema changes, see https://github.com/cockroachdb/cockroach/pull/58182
+insert into ACT_GE_SCHEMA_LOG
+values ('1100', CURRENT_TIMESTAMP, '7.22.0');
-alter table ACT_RU_EXT_TASK
- add column CREATE_TIME_ timestamp;
+alter table ACT_RU_TASK add TASK_STATE_ nvarchar(64);
-alter table ACT_RU_JOB
- add column ROOT_PROC_INST_ID_ varchar(64);
+alter table ACT_HI_TASKINST add TASK_STATE_ nvarchar(64);
-create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
+alter table ACT_RU_JOB add BATCH_ID_ nvarchar(64);
+alter table ACT_HI_JOB_LOG add BATCH_ID_ nvarchar(64);
-insert into ACT_GE_SCHEMA_LOG
-values ('1000', CURRENT_TIMESTAMP, '7.21.0');
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ nvarchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mysql_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mysql_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/mysql_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.16_to_7.17.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/oracle_engine_7.21_to_7.22.sql
similarity index 66%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.16_to_7.17.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/oracle_engine_7.21_to_7.22.sql
index 6cf1fd10..afe6e9d3 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.16_to_7.17.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/oracle_engine_7.21_to_7.22.sql
@@ -15,15 +15,15 @@
-- limitations under the License.
--
--- https://jira.camunda.com/browse/CAM-14006 --
-ALTER TABLE ACT_RU_JOB
- ADD COLUMN LAST_FAILURE_LOG_ID_ varchar(64);
-
-ALTER TABLE ACT_RU_EXT_TASK
- ADD COLUMN LAST_FAILURE_LOG_ID_ varchar(64);
-
insert into ACT_GE_SCHEMA_LOG
-values ('600', CURRENT_TIMESTAMP, '7.17.0');
+values ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add TASK_STATE_ NVARCHAR2(64);
+
+alter table ACT_HI_TASKINST add TASK_STATE_ NVARCHAR2(64);
+
+alter table ACT_RU_JOB add BATCH_ID_ NVARCHAR2(64);
+alter table ACT_HI_JOB_LOG add BATCH_ID_ NVARCHAR2(64);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
\ No newline at end of file
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ NVARCHAR2(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.20_to_7.21.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.20_to_7.21.sql
index bef6ecb7..c56732d3 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.20_to_7.21.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.20_to_7.21.sql
@@ -24,4 +24,4 @@ alter table ACT_RU_EXT_TASK
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_);
\ No newline at end of file
+create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/postgres_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.14_to_7.15.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.14_to_7.15.sql
deleted file mode 100644
index f94d5015..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.14_to_7.15.sql
+++ /dev/null
@@ -1,39 +0,0 @@
---
--- 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.
---
-
--- https://jira.camunda.com/browse/CAM-13013
-
-create table ACT_RU_TASK_METER_LOG (
- ID_ varchar(64) not null,
- ASSIGNEE_HASH_ bigint,
- TIMESTAMP_ timestamp,
- primary key (ID_)
-);
-
-create index ACT_IDX_TASK_METER_LOG_TIME on ACT_RU_TASK_METER_LOG(TIMESTAMP_);
-
--- table writes should ideally come after schema changes, see https://github.com/cockroachdb/cockroach/pull/58182
-
-insert into ACT_GE_SCHEMA_LOG
-values ('400', CURRENT_TIMESTAMP, '7.15.0');
-
--- https://jira.camunda.com/browse/CAM-13060
-ALTER TABLE ACT_RU_INCIDENT
- ADD ANNOTATION_ varchar(4000);
-
-ALTER TABLE ACT_HI_INCIDENT
- ADD ANNOTATION_ varchar(4000);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.15_to_7.16.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.15_to_7.16.sql
deleted file mode 100644
index b8bdfb57..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.15_to_7.16.sql
+++ /dev/null
@@ -1,30 +0,0 @@
---
--- 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.
---
-
-create table ACT_RE_CAMFORMDEF (
- ID_ varchar(64) NOT NULL,
- REV_ integer,
- KEY_ varchar(255) NOT NULL,
- VERSION_ integer NOT NULL,
- DEPLOYMENT_ID_ varchar(64),
- RESOURCE_NAME_ varchar(4000),
- TENANT_ID_ varchar(64),
- primary key (ID_)
-);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('500', CURRENT_TIMESTAMP, '7.16.0');
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.17_to_7.18.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.17_to_7.18.sql
deleted file mode 100644
index 7cb0ee83..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.17_to_7.18.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- 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.
---
-
--- https://jira.camunda.com/browse/CAM-14303 --
-ALTER TABLE ACT_RU_TASK
- ADD COLUMN LAST_UPDATED_ timestamp;
-
--- table writes should ideally come after schema changes, see https://github.com/cockroachdb/cockroach/pull/58182
-
--- https://jira.camunda.com/browse/CAM-14303 --
-create index ACT_IDX_TASK_LAST_UPDATED on ACT_RU_TASK(LAST_UPDATED_);
-
-insert into ACT_GE_SCHEMA_LOG
-values ('700', CURRENT_TIMESTAMP, '7.18.0');
-
--- https://jira.camunda.com/browse/CAM-14721
-ALTER TABLE ACT_RU_BATCH
- ADD COLUMN START_TIME_ timestamp;
-
--- https://jira.camunda.com/browse/CAM-14722
-ALTER TABLE ACT_RU_BATCH
- ADD COLUMN EXEC_START_TIME_ timestamp;
-ALTER TABLE ACT_HI_BATCH
- ADD COLUMN EXEC_START_TIME_ timestamp;
\ No newline at end of file
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.18_to_7.19.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.18_to_7.19.sql
deleted file mode 100644
index f55ca453..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.18_to_7.19.sql
+++ /dev/null
@@ -1,19 +0,0 @@
---
--- 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 ('800', CURRENT_TIMESTAMP, '7.19.0');
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.19_to_7.20.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.19_to_7.20.sql
deleted file mode 100644
index a5cb12ce..00000000
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/cockroachdb_engine_7.19_to_7.20.sql
+++ /dev/null
@@ -1,19 +0,0 @@
---
--- 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 ('900', CURRENT_TIMESTAMP, '7.20.0');
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/db2_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/db2_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/db2_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/h2_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/h2_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/h2_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mariadb_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mariadb_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mariadb_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.20_to_7.21.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mssql_engine_7.21_to_7.22.sql
similarity index 66%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.20_to_7.21.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mssql_engine_7.21_to_7.22.sql
index 096481ce..66ea5d03 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.20_to_7.21.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mssql_engine_7.21_to_7.22.sql
@@ -15,15 +15,15 @@
-- limitations under the License.
--
--- table writes should ideally come after schema changes, see https://github.com/cockroachdb/cockroach/pull/58182
+insert into ACT_GE_SCHEMA_LOG
+values ('1100', CURRENT_TIMESTAMP, '7.22.0');
-alter table ACT_RU_EXT_TASK
- add column CREATE_TIME_ timestamp;
+alter table ACT_RU_TASK add TASK_STATE_ nvarchar(64);
-alter table ACT_RU_JOB
- add column ROOT_PROC_INST_ID_ varchar(64);
+alter table ACT_HI_TASKINST add TASK_STATE_ nvarchar(64);
-create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
+alter table ACT_RU_JOB add BATCH_ID_ nvarchar(64);
+alter table ACT_HI_JOB_LOG add BATCH_ID_ nvarchar(64);
-insert into ACT_GE_SCHEMA_LOG
-values ('1000', CURRENT_TIMESTAMP, '7.21.0');
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ nvarchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mysql_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mysql_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/mysql_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.16_to_7.17.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/oracle_engine_7.21_to_7.22.sql
similarity index 66%
rename from services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.16_to_7.17.sql
rename to services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/oracle_engine_7.21_to_7.22.sql
index 6cf1fd10..afe6e9d3 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/liquibase/upgrade/cockroachdb_engine_7.16_to_7.17.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/oracle_engine_7.21_to_7.22.sql
@@ -15,15 +15,15 @@
-- limitations under the License.
--
--- https://jira.camunda.com/browse/CAM-14006 --
-ALTER TABLE ACT_RU_JOB
- ADD COLUMN LAST_FAILURE_LOG_ID_ varchar(64);
-
-ALTER TABLE ACT_RU_EXT_TASK
- ADD COLUMN LAST_FAILURE_LOG_ID_ varchar(64);
-
insert into ACT_GE_SCHEMA_LOG
-values ('600', CURRENT_TIMESTAMP, '7.17.0');
+values ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add TASK_STATE_ NVARCHAR2(64);
+
+alter table ACT_HI_TASKINST add TASK_STATE_ NVARCHAR2(64);
+
+alter table ACT_RU_JOB add BATCH_ID_ NVARCHAR2(64);
+alter table ACT_HI_JOB_LOG add BATCH_ID_ NVARCHAR2(64);
-create index ACT_IDX_HI_VARINST_NAME on ACT_HI_VARINST(NAME_);
-create index ACT_IDX_HI_VARINST_ACT_INST_ID on ACT_HI_VARINST(ACT_INST_ID_);
\ No newline at end of file
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ NVARCHAR2(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.20_to_7.21.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.20_to_7.21.sql
index bef6ecb7..c56732d3 100644
--- a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.20_to_7.21.sql
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.20_to_7.21.sql
@@ -24,4 +24,4 @@ alter table ACT_RU_EXT_TASK
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_);
\ No newline at end of file
+create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_);
diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.21_to_7.22.sql b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.21_to_7.22.sql
new file mode 100644
index 00000000..55583c6f
--- /dev/null
+++ b/services/dante-cloud-bpmn-ability/src/main/resources/sqls/upgrade/postgres_engine_7.21_to_7.22.sql
@@ -0,0 +1,29 @@
+--
+-- 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 ('1100', CURRENT_TIMESTAMP, '7.22.0');
+
+alter table ACT_RU_TASK add column TASK_STATE_ varchar(64);
+
+alter table ACT_HI_TASKINST add column TASK_STATE_ varchar(64);
+
+alter table ACT_RU_JOB add column BATCH_ID_ varchar(64);
+alter table ACT_HI_JOB_LOG add column BATCH_ID_ varchar(64);
+
+alter table ACT_HI_PROCINST add RESTARTED_PROC_INST_ID_ varchar(64);
+create index ACT_IDX_HI_PRO_RST_PRO_INST_ID on ACT_HI_PROCINST(RESTARTED_PROC_INST_ID_);
From f5cc485050efba72b374df1cf0ccb4355089d49c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Sat, 12 Oct 2024 21:33:31 +0800
Subject: [PATCH 3/5] =?UTF-8?q?[=E5=8D=87=E7=BA=A7]=20Nacos=20=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E5=8D=87=E7=BA=A7=E8=87=B3=202.4.3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 +-
.../linux/herodotus/env.base.yml | 4 +-
.../linux/herodotus/env.full.debezium.yml | 4 +-
.../linux/herodotus/env.quick-start.yaml | 4 +-
.../windows/herodotus/env.base.yml | 4 +-
.../windows/herodotus/env.full.base.yml | 4 +-
.../windows/herodotus/env.full.debezium.yml | 4 +-
.../scripts/nacos/sqls/nacos-mysql_2.4.3.sql | 210 ++++++++
.../nacos/sqls/nacos-postgresql_2.4.3.sql | 460 ++++++++++++++++++
9 files changed, 684 insertions(+), 14 deletions(-)
create mode 100644 configurations/scripts/nacos/sqls/nacos-mysql_2.4.3.sql
create mode 100644 configurations/scripts/nacos/sqls/nacos-postgresql_2.4.3.sql
diff --git a/README.md b/README.md
index 67f233b4..16a38165 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
-
+
@@ -154,7 +154,7 @@
| Spring Cloud Tencent | 1.14.0-2023.0.0 |
| Spring Authorization Server | 1.3.2 |
| Spring Boot Admin | 3.3.4 |
-| Nacos | 2.4.2 |
+| Nacos | 2.4.3 |
| Sentinel | 1.8.8 |
| Seata | 1.7.0 |
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.base.yml b/configurations/docker/docker-compose/linux/herodotus/env.base.yml
index 0e1ae4f7..2ec6e482 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.base.yml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.base.yml
@@ -1,7 +1,7 @@
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: nacos
hostname: nacos
environment:
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
index f3b520e2..a4ac54c5 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml
@@ -1,7 +1,7 @@
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: nacos
hostname: nacos
restart: always
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml b/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml
index 9ad511d0..c334bdee 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml
@@ -2,8 +2,8 @@ version: '3.8'
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: dante-nacos
hostname: dante-nacos
environment:
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.base.yml b/configurations/docker/docker-compose/windows/herodotus/env.base.yml
index 5bfb21cf..54f01990 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.base.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.base.yml
@@ -1,7 +1,7 @@
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: nacos
environment:
MODE: standalone
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml
index e16f9446..7f0410e7 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml
@@ -1,7 +1,7 @@
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: nacos
environment:
MODE: standalone
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
index deb1bb4d..b3c99ce4 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml
@@ -1,7 +1,7 @@
services:
nacos:
- image: quay.io/dante-cloud/nacos-server:v2.4.2
- # image: herodotus/nacos-server:v2.4.2
+ image: quay.io/dante-cloud/nacos-server:v2.4.3
+ # image: herodotus/nacos-server:v2.4.3
container_name: nacos
hostname: nacos
restart: always
diff --git a/configurations/scripts/nacos/sqls/nacos-mysql_2.4.3.sql b/configurations/scripts/nacos/sqls/nacos-mysql_2.4.3.sql
new file mode 100644
index 00000000..d3c06606
--- /dev/null
+++ b/configurations/scripts/nacos/sqls/nacos-mysql_2.4.3.sql
@@ -0,0 +1,210 @@
+/*
+ * Copyright 1999-2018 Alibaba Group Holding Ltd.
+ *
+ * Licensed 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.
+ */
+
+/******************************************/
+/* 表名称 = config_info */
+/******************************************/
+CREATE TABLE `config_info` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) DEFAULT NULL COMMENT 'group_id',
+ `content` longtext NOT NULL COMMENT 'content',
+ `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ `src_user` text COMMENT 'source user',
+ `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
+ `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
+ `c_desc` varchar(256) DEFAULT NULL COMMENT 'configuration description',
+ `c_use` varchar(64) DEFAULT NULL COMMENT 'configuration usage',
+ `effect` varchar(64) DEFAULT NULL COMMENT '配置生效的描述',
+ `type` varchar(64) DEFAULT NULL COMMENT '配置的类型',
+ `c_schema` text COMMENT '配置的模式',
+ `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info';
+
+/******************************************/
+/* 表名称 = config_info_aggr */
+/******************************************/
+CREATE TABLE `config_info_aggr` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) NOT NULL COMMENT 'group_id',
+ `datum_id` varchar(255) NOT NULL COMMENT 'datum_id',
+ `content` longtext NOT NULL COMMENT '内容',
+ `gmt_modified` datetime NOT NULL COMMENT '修改时间',
+ `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段';
+
+
+/******************************************/
+/* 表名称 = config_info_beta */
+/******************************************/
+CREATE TABLE `config_info_beta` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) NOT NULL COMMENT 'group_id',
+ `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
+ `content` longtext NOT NULL COMMENT 'content',
+ `beta_ips` varchar(1024) DEFAULT NULL COMMENT 'betaIps',
+ `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ `src_user` text COMMENT 'source user',
+ `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
+ `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_beta';
+
+/******************************************/
+/* 表名称 = config_info_tag */
+/******************************************/
+CREATE TABLE `config_info_tag` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) NOT NULL COMMENT 'group_id',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
+ `tag_id` varchar(128) NOT NULL COMMENT 'tag_id',
+ `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
+ `content` longtext NOT NULL COMMENT 'content',
+ `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ `src_user` text COMMENT 'source user',
+ `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_tag';
+
+/******************************************/
+/* 表名称 = config_tags_relation */
+/******************************************/
+CREATE TABLE `config_tags_relation` (
+ `id` bigint(20) NOT NULL COMMENT 'id',
+ `tag_name` varchar(128) NOT NULL COMMENT 'tag_name',
+ `tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) NOT NULL COMMENT 'group_id',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
+ `nid` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增长标识',
+ PRIMARY KEY (`nid`),
+ UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`),
+ KEY `idx_tenant_id` (`tenant_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_tag_relation';
+
+/******************************************/
+/* 表名称 = group_capacity */
+/******************************************/
+CREATE TABLE `group_capacity` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
+ `group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
+ `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
+ `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
+ `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
+ `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数,,0表示使用默认值',
+ `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
+ `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_group_id` (`group_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='集群、各Group容量信息表';
+
+/******************************************/
+/* 表名称 = his_config_info */
+/******************************************/
+CREATE TABLE `his_config_info` (
+ `id` bigint(20) unsigned NOT NULL COMMENT 'id',
+ `nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增标识',
+ `data_id` varchar(255) NOT NULL COMMENT 'data_id',
+ `group_id` varchar(128) NOT NULL COMMENT 'group_id',
+ `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
+ `content` longtext NOT NULL COMMENT 'content',
+ `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ `src_user` text COMMENT 'source user',
+ `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
+ `op_type` char(10) DEFAULT NULL COMMENT 'operation type',
+ `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
+ `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥',
+ PRIMARY KEY (`nid`),
+ KEY `idx_gmt_create` (`gmt_create`),
+ KEY `idx_gmt_modified` (`gmt_modified`),
+ KEY `idx_did` (`data_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造';
+
+
+/******************************************/
+/* 表名称 = tenant_capacity */
+/******************************************/
+CREATE TABLE `tenant_capacity` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
+ `tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant ID',
+ `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
+ `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
+ `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
+ `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数',
+ `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
+ `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
+ `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_tenant_id` (`tenant_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表';
+
+
+CREATE TABLE `tenant_info` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
+ `kp` varchar(128) NOT NULL COMMENT 'kp',
+ `tenant_id` varchar(128) default '' COMMENT 'tenant_id',
+ `tenant_name` varchar(128) default '' COMMENT 'tenant_name',
+ `tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc',
+ `create_source` varchar(32) DEFAULT NULL COMMENT 'create_source',
+ `gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
+ `gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`),
+ KEY `idx_tenant_id` (`tenant_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='tenant_info';
+
+CREATE TABLE `users` (
+ `username` varchar(50) NOT NULL PRIMARY KEY COMMENT 'username',
+ `password` varchar(500) NOT NULL COMMENT 'password',
+ `enabled` boolean NOT NULL COMMENT 'enabled'
+);
+
+CREATE TABLE `roles` (
+ `username` varchar(50) NOT NULL COMMENT 'username',
+ `role` varchar(50) NOT NULL COMMENT 'role',
+ UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE
+);
+
+CREATE TABLE `permissions` (
+ `role` varchar(50) NOT NULL COMMENT 'role',
+ `resource` varchar(128) NOT NULL COMMENT 'resource',
+ `action` varchar(8) NOT NULL COMMENT 'action',
+ UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
+);
+
diff --git a/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.3.sql b/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.3.sql
new file mode 100644
index 00000000..091f6f19
--- /dev/null
+++ b/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.3.sql
@@ -0,0 +1,460 @@
+/*
+ Navicat Premium Dump SQL
+
+ Source Server : LOCAL_NACOS_PG
+ Source Server Type : PostgreSQL
+ Source Server Version : 170000 (170000)
+ Source Host : 192.168.101.10:15432
+ Source Catalog : nacos
+ Source Schema : public
+
+ Target Server Type : PostgreSQL
+ Target Server Version : 170000 (170000)
+ File Encoding : 65001
+
+ Date: 12/10/2024 21:28:52
+*/
+
+
+-- ----------------------------
+-- Table structure for config_info
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."config_info";
+CREATE TABLE "public"."config_info" (
+ "id" int8 NOT NULL DEFAULT nextval('config_info_id_seq'::regclass),
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(255) COLLATE "pg_catalog"."default",
+ "content" text COLLATE "pg_catalog"."default" NOT NULL,
+ "md5" varchar(32) COLLATE "pg_catalog"."default",
+ "gmt_create" timestamp(6) NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL,
+ "src_user" text COLLATE "pg_catalog"."default",
+ "src_ip" varchar(20) COLLATE "pg_catalog"."default",
+ "app_name" varchar(128) COLLATE "pg_catalog"."default",
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "c_desc" varchar(256) COLLATE "pg_catalog"."default",
+ "c_use" varchar(64) COLLATE "pg_catalog"."default",
+ "effect" varchar(64) COLLATE "pg_catalog"."default",
+ "type" varchar(64) COLLATE "pg_catalog"."default",
+ "c_schema" text COLLATE "pg_catalog"."default",
+ "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
+)
+;
+COMMENT ON COLUMN "public"."config_info"."id" IS 'id';
+COMMENT ON COLUMN "public"."config_info"."data_id" IS 'data_id';
+COMMENT ON COLUMN "public"."config_info"."content" IS 'content';
+COMMENT ON COLUMN "public"."config_info"."md5" IS 'md5';
+COMMENT ON COLUMN "public"."config_info"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."config_info"."gmt_modified" IS '修改时间';
+COMMENT ON COLUMN "public"."config_info"."src_user" IS 'source user';
+COMMENT ON COLUMN "public"."config_info"."src_ip" IS 'source ip';
+COMMENT ON COLUMN "public"."config_info"."tenant_id" IS '租户字段';
+COMMENT ON COLUMN "public"."config_info"."encrypted_data_key" IS '秘钥';
+COMMENT ON TABLE "public"."config_info" IS 'config_info';
+
+-- ----------------------------
+-- Table structure for config_info_aggr
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."config_info_aggr";
+CREATE TABLE "public"."config_info_aggr" (
+ "id" int8 NOT NULL DEFAULT nextval('config_info_aggr_id_seq'::regclass),
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "datum_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "content" text COLLATE "pg_catalog"."default" NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL,
+ "app_name" varchar(128) COLLATE "pg_catalog"."default",
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default"
+)
+;
+COMMENT ON COLUMN "public"."config_info_aggr"."id" IS 'id';
+COMMENT ON COLUMN "public"."config_info_aggr"."data_id" IS 'data_id';
+COMMENT ON COLUMN "public"."config_info_aggr"."group_id" IS 'group_id';
+COMMENT ON COLUMN "public"."config_info_aggr"."datum_id" IS 'datum_id';
+COMMENT ON COLUMN "public"."config_info_aggr"."content" IS '内容';
+COMMENT ON COLUMN "public"."config_info_aggr"."gmt_modified" IS '修改时间';
+COMMENT ON COLUMN "public"."config_info_aggr"."tenant_id" IS '租户字段';
+COMMENT ON TABLE "public"."config_info_aggr" IS '增加租户字段';
+
+-- ----------------------------
+-- Table structure for config_info_beta
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."config_info_beta";
+CREATE TABLE "public"."config_info_beta" (
+ "id" int8 NOT NULL DEFAULT nextval('config_info_beta_id_seq'::regclass),
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "app_name" varchar(128) COLLATE "pg_catalog"."default",
+ "content" text COLLATE "pg_catalog"."default" NOT NULL,
+ "beta_ips" varchar(1024) COLLATE "pg_catalog"."default",
+ "md5" varchar(32) COLLATE "pg_catalog"."default",
+ "gmt_create" timestamp(6) NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL,
+ "src_user" text COLLATE "pg_catalog"."default",
+ "src_ip" varchar(20) COLLATE "pg_catalog"."default",
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
+)
+;
+COMMENT ON COLUMN "public"."config_info_beta"."id" IS 'id';
+COMMENT ON COLUMN "public"."config_info_beta"."data_id" IS 'data_id';
+COMMENT ON COLUMN "public"."config_info_beta"."group_id" IS 'group_id';
+COMMENT ON COLUMN "public"."config_info_beta"."app_name" IS 'app_name';
+COMMENT ON COLUMN "public"."config_info_beta"."content" IS 'content';
+COMMENT ON COLUMN "public"."config_info_beta"."beta_ips" IS 'betaIps';
+COMMENT ON COLUMN "public"."config_info_beta"."md5" IS 'md5';
+COMMENT ON COLUMN "public"."config_info_beta"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."config_info_beta"."gmt_modified" IS '修改时间';
+COMMENT ON COLUMN "public"."config_info_beta"."src_user" IS 'source user';
+COMMENT ON COLUMN "public"."config_info_beta"."src_ip" IS 'source ip';
+COMMENT ON COLUMN "public"."config_info_beta"."tenant_id" IS '租户字段';
+COMMENT ON COLUMN "public"."config_info_beta"."encrypted_data_key" IS '秘钥';
+COMMENT ON TABLE "public"."config_info_beta" IS 'config_info_beta';
+
+-- ----------------------------
+-- Table structure for config_info_tag
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."config_info_tag";
+CREATE TABLE "public"."config_info_tag" (
+ "id" int8 NOT NULL DEFAULT nextval('config_info_tag_id_seq'::regclass),
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "tag_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "app_name" varchar(128) COLLATE "pg_catalog"."default",
+ "content" text COLLATE "pg_catalog"."default" NOT NULL,
+ "md5" varchar(32) COLLATE "pg_catalog"."default",
+ "gmt_create" timestamp(6) NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL,
+ "src_user" text COLLATE "pg_catalog"."default",
+ "src_ip" varchar(20) COLLATE "pg_catalog"."default"
+)
+;
+COMMENT ON COLUMN "public"."config_info_tag"."id" IS 'id';
+COMMENT ON COLUMN "public"."config_info_tag"."data_id" IS 'data_id';
+COMMENT ON COLUMN "public"."config_info_tag"."group_id" IS 'group_id';
+COMMENT ON COLUMN "public"."config_info_tag"."tenant_id" IS 'tenant_id';
+COMMENT ON COLUMN "public"."config_info_tag"."tag_id" IS 'tag_id';
+COMMENT ON COLUMN "public"."config_info_tag"."app_name" IS 'app_name';
+COMMENT ON COLUMN "public"."config_info_tag"."content" IS 'content';
+COMMENT ON COLUMN "public"."config_info_tag"."md5" IS 'md5';
+COMMENT ON COLUMN "public"."config_info_tag"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."config_info_tag"."gmt_modified" IS '修改时间';
+COMMENT ON COLUMN "public"."config_info_tag"."src_user" IS 'source user';
+COMMENT ON COLUMN "public"."config_info_tag"."src_ip" IS 'source ip';
+COMMENT ON TABLE "public"."config_info_tag" IS 'config_info_tag';
+
+-- ----------------------------
+-- Table structure for config_tags_relation
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."config_tags_relation";
+CREATE TABLE "public"."config_tags_relation" (
+ "id" int8 NOT NULL DEFAULT nextval('config_tags_relation_id_seq'::regclass),
+ "tag_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "tag_type" varchar(64) COLLATE "pg_catalog"."default",
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "nid" int8 NOT NULL DEFAULT nextval('config_tags_relation_nid_seq'::regclass)
+)
+;
+COMMENT ON COLUMN "public"."config_tags_relation"."id" IS 'id';
+COMMENT ON COLUMN "public"."config_tags_relation"."tag_name" IS 'tag_name';
+COMMENT ON COLUMN "public"."config_tags_relation"."tag_type" IS 'tag_type';
+COMMENT ON COLUMN "public"."config_tags_relation"."data_id" IS 'data_id';
+COMMENT ON COLUMN "public"."config_tags_relation"."group_id" IS 'group_id';
+COMMENT ON COLUMN "public"."config_tags_relation"."tenant_id" IS 'tenant_id';
+COMMENT ON TABLE "public"."config_tags_relation" IS 'config_tag_relation';
+
+-- ----------------------------
+-- Table structure for group_capacity
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."group_capacity";
+CREATE TABLE "public"."group_capacity" (
+ "id" int8 NOT NULL DEFAULT nextval('group_capacity_id_seq'::regclass),
+ "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "quota" int4 NOT NULL,
+ "usage" int4 NOT NULL,
+ "max_size" int4 NOT NULL,
+ "max_aggr_count" int4 NOT NULL,
+ "max_aggr_size" int4 NOT NULL,
+ "max_history_count" int4 NOT NULL,
+ "gmt_create" timestamp(6) NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL
+)
+;
+COMMENT ON COLUMN "public"."group_capacity"."id" IS '主键ID';
+COMMENT ON COLUMN "public"."group_capacity"."group_id" IS 'Group ID,空字符表示整个集群';
+COMMENT ON COLUMN "public"."group_capacity"."quota" IS '配额,0表示使用默认值';
+COMMENT ON COLUMN "public"."group_capacity"."usage" IS '使用量';
+COMMENT ON COLUMN "public"."group_capacity"."max_size" IS '单个配置大小上限,单位为字节,0表示使用默认值';
+COMMENT ON COLUMN "public"."group_capacity"."max_aggr_count" IS '聚合子配置最大个数,,0表示使用默认值';
+COMMENT ON COLUMN "public"."group_capacity"."max_aggr_size" IS '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值';
+COMMENT ON COLUMN "public"."group_capacity"."max_history_count" IS '最大变更历史数量';
+COMMENT ON COLUMN "public"."group_capacity"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."group_capacity"."gmt_modified" IS '修改时间';
+COMMENT ON TABLE "public"."group_capacity" IS '集群、各Group容量信息表';
+
+-- ----------------------------
+-- Table structure for his_config_info
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."his_config_info";
+CREATE TABLE "public"."his_config_info" (
+ "id" int8 NOT NULL,
+ "nid" int8 NOT NULL DEFAULT nextval('his_config_info_nid_seq'::regclass),
+ "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
+ "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "app_name" varchar(128) COLLATE "pg_catalog"."default",
+ "content" text COLLATE "pg_catalog"."default" NOT NULL,
+ "md5" varchar(32) COLLATE "pg_catalog"."default",
+ "gmt_create" timestamp(6) NOT NULL DEFAULT '2010-05-05 00:00:00'::timestamp without time zone,
+ "gmt_modified" timestamp(6) NOT NULL,
+ "src_user" text COLLATE "pg_catalog"."default",
+ "src_ip" varchar(20) COLLATE "pg_catalog"."default",
+ "op_type" char(10) COLLATE "pg_catalog"."default",
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
+)
+;
+COMMENT ON COLUMN "public"."his_config_info"."app_name" IS 'app_name';
+COMMENT ON COLUMN "public"."his_config_info"."tenant_id" IS '租户字段';
+COMMENT ON COLUMN "public"."his_config_info"."encrypted_data_key" IS '秘钥';
+COMMENT ON TABLE "public"."his_config_info" IS '多租户改造';
+
+-- ----------------------------
+-- Table structure for permissions
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."permissions";
+CREATE TABLE "public"."permissions" (
+ "role" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
+ "resource" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
+ "action" varchar(8) COLLATE "pg_catalog"."default" NOT NULL
+)
+;
+
+-- ----------------------------
+-- Table structure for roles
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."roles";
+CREATE TABLE "public"."roles" (
+ "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
+ "role" varchar(50) COLLATE "pg_catalog"."default" NOT NULL
+)
+;
+COMMENT ON COLUMN "public"."roles"."username" IS 'username';
+COMMENT ON COLUMN "public"."roles"."role" IS 'role';
+
+-- ----------------------------
+-- Table structure for tenant_capacity
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."tenant_capacity";
+CREATE TABLE "public"."tenant_capacity" (
+ "id" int8 NOT NULL DEFAULT nextval('tenant_capacity_id_seq'::regclass),
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "quota" int4 NOT NULL,
+ "usage" int4 NOT NULL,
+ "max_size" int4 NOT NULL,
+ "max_aggr_count" int4 NOT NULL,
+ "max_aggr_size" int4 NOT NULL,
+ "max_history_count" int4 NOT NULL,
+ "gmt_create" timestamp(6) NOT NULL,
+ "gmt_modified" timestamp(6) NOT NULL
+)
+;
+COMMENT ON COLUMN "public"."tenant_capacity"."id" IS '主键ID';
+COMMENT ON COLUMN "public"."tenant_capacity"."tenant_id" IS 'Tenant ID';
+COMMENT ON COLUMN "public"."tenant_capacity"."quota" IS '配额,0表示使用默认值';
+COMMENT ON COLUMN "public"."tenant_capacity"."usage" IS '使用量';
+COMMENT ON COLUMN "public"."tenant_capacity"."max_size" IS '单个配置大小上限,单位为字节,0表示使用默认值';
+COMMENT ON COLUMN "public"."tenant_capacity"."max_aggr_count" IS '聚合子配置最大个数';
+COMMENT ON COLUMN "public"."tenant_capacity"."max_aggr_size" IS '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值';
+COMMENT ON COLUMN "public"."tenant_capacity"."max_history_count" IS '最大变更历史数量';
+COMMENT ON COLUMN "public"."tenant_capacity"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."tenant_capacity"."gmt_modified" IS '修改时间';
+COMMENT ON TABLE "public"."tenant_capacity" IS '租户容量信息表';
+
+-- ----------------------------
+-- Table structure for tenant_info
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."tenant_info";
+CREATE TABLE "public"."tenant_info" (
+ "id" int8 NOT NULL DEFAULT nextval('tenant_info_id_seq'::regclass),
+ "kp" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
+ "tenant_id" varchar(128) COLLATE "pg_catalog"."default",
+ "tenant_name" varchar(128) COLLATE "pg_catalog"."default",
+ "tenant_desc" varchar(256) COLLATE "pg_catalog"."default",
+ "create_source" varchar(32) COLLATE "pg_catalog"."default",
+ "gmt_create" int8 NOT NULL,
+ "gmt_modified" int8 NOT NULL
+)
+;
+COMMENT ON COLUMN "public"."tenant_info"."id" IS 'id';
+COMMENT ON COLUMN "public"."tenant_info"."kp" IS 'kp';
+COMMENT ON COLUMN "public"."tenant_info"."tenant_id" IS 'tenant_id';
+COMMENT ON COLUMN "public"."tenant_info"."tenant_name" IS 'tenant_name';
+COMMENT ON COLUMN "public"."tenant_info"."tenant_desc" IS 'tenant_desc';
+COMMENT ON COLUMN "public"."tenant_info"."create_source" IS 'create_source';
+COMMENT ON COLUMN "public"."tenant_info"."gmt_create" IS '创建时间';
+COMMENT ON COLUMN "public"."tenant_info"."gmt_modified" IS '修改时间';
+COMMENT ON TABLE "public"."tenant_info" IS 'tenant_info';
+
+-- ----------------------------
+-- Table structure for users
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."users";
+CREATE TABLE "public"."users" (
+ "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
+ "password" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
+ "enabled" bool NOT NULL
+)
+;
+COMMENT ON COLUMN "public"."users"."username" IS 'username';
+COMMENT ON COLUMN "public"."users"."password" IS 'password';
+COMMENT ON COLUMN "public"."users"."enabled" IS 'enabled';
+
+-- ----------------------------
+-- Indexes structure for table config_info
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_configinfo_datagrouptenant" ON "public"."config_info" USING btree (
+ "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table config_info
+-- ----------------------------
+ALTER TABLE "public"."config_info" ADD CONSTRAINT "config_info_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table config_info_aggr
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_configinfoaggr_datagrouptenantdatum" ON "public"."config_info_aggr" USING btree (
+ "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "datum_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table config_info_aggr
+-- ----------------------------
+ALTER TABLE "public"."config_info_aggr" ADD CONSTRAINT "config_info_aggr_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table config_info_beta
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_configinfobeta_datagrouptenant" ON "public"."config_info_beta" USING btree (
+ "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table config_info_beta
+-- ----------------------------
+ALTER TABLE "public"."config_info_beta" ADD CONSTRAINT "config_info_beta_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table config_info_tag
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_configinfotag_datagrouptenanttag" ON "public"."config_info_tag" USING btree (
+ "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tag_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table config_info_tag
+-- ----------------------------
+ALTER TABLE "public"."config_info_tag" ADD CONSTRAINT "config_info_tag_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table config_tags_relation
+-- ----------------------------
+CREATE INDEX "idx_tenant_id" ON "public"."config_tags_relation" USING btree (
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+CREATE UNIQUE INDEX "uk_configtagrelation_configidtag" ON "public"."config_tags_relation" USING btree (
+ "id" "pg_catalog"."int8_ops" ASC NULLS LAST,
+ "tag_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tag_type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table config_tags_relation
+-- ----------------------------
+ALTER TABLE "public"."config_tags_relation" ADD CONSTRAINT "config_tags_relation_pkey" PRIMARY KEY ("nid");
+
+-- ----------------------------
+-- Indexes structure for table group_capacity
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_group_id" ON "public"."group_capacity" USING btree (
+ "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table group_capacity
+-- ----------------------------
+ALTER TABLE "public"."group_capacity" ADD CONSTRAINT "group_capacity_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table his_config_info
+-- ----------------------------
+CREATE INDEX "idx_did" ON "public"."his_config_info" USING btree (
+ "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+CREATE INDEX "idx_gmt_create" ON "public"."his_config_info" USING btree (
+ "gmt_create" "pg_catalog"."timestamp_ops" ASC NULLS LAST
+ );
+CREATE INDEX "idx_gmt_modified" ON "public"."his_config_info" USING btree (
+ "gmt_modified" "pg_catalog"."timestamp_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table his_config_info
+-- ----------------------------
+ALTER TABLE "public"."his_config_info" ADD CONSTRAINT "his_config_info_pkey" PRIMARY KEY ("nid");
+
+-- ----------------------------
+-- Indexes structure for table permissions
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_role_permission" ON "public"."permissions" USING btree (
+ "role" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "resource" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "action" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Indexes structure for table roles
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_username_role" ON "public"."roles" USING btree (
+ "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "role" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Indexes structure for table tenant_capacity
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_tenant_id" ON "public"."tenant_capacity" USING btree (
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table tenant_capacity
+-- ----------------------------
+ALTER TABLE "public"."tenant_capacity" ADD CONSTRAINT "tenant_capacity_pkey" PRIMARY KEY ("id");
+
+-- ----------------------------
+-- Indexes structure for table tenant_info
+-- ----------------------------
+CREATE UNIQUE INDEX "uk_tenant_info_kptenantid" ON "public"."tenant_info" USING btree (
+ "kp" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
+ "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
+ );
+
+-- ----------------------------
+-- Primary Key structure for table users
+-- ----------------------------
+ALTER TABLE "public"."users" ADD CONSTRAINT "users_pkey" PRIMARY KEY ("username");
\ No newline at end of file
From 4051cbe71491062d5722128a3f9c18aec19530f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Sat, 12 Oct 2024 21:34:31 +0800
Subject: [PATCH 4/5] =?UTF-8?q?[=E5=8D=87=E7=BA=A7]=20minio=20docker=20?=
=?UTF-8?q?=E9=95=9C=E5=83=8F=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7=E8=87=B3?=
=?UTF-8?q?=20RELEASE.2024-10-02T17-50-41Z?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../docker/docker-compose/linux/herodotus/env.oss.yml | 2 +-
.../docker/docker-compose/windows/herodotus/env.oss.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configurations/docker/docker-compose/linux/herodotus/env.oss.yml b/configurations/docker/docker-compose/linux/herodotus/env.oss.yml
index 3b867977..1bee0d57 100644
--- a/configurations/docker/docker-compose/linux/herodotus/env.oss.yml
+++ b/configurations/docker/docker-compose/linux/herodotus/env.oss.yml
@@ -1,6 +1,6 @@
services:
minio:
- image: quay.io/minio/minio:RELEASE.2024-09-13T20-26-02Z
+ image: quay.io/minio/minio:RELEASE.2024-10-02T17-50-41Z
container_name: minio
hostname: minio
ports:
diff --git a/configurations/docker/docker-compose/windows/herodotus/env.oss.yml b/configurations/docker/docker-compose/windows/herodotus/env.oss.yml
index 540c66d8..c9aa539e 100644
--- a/configurations/docker/docker-compose/windows/herodotus/env.oss.yml
+++ b/configurations/docker/docker-compose/windows/herodotus/env.oss.yml
@@ -1,6 +1,6 @@
services:
minio:
- image: quay.io/minio/minio:RELEASE.2024-09-13T20-26-02Z
+ image: quay.io/minio/minio:RELEASE.2024-10-02T17-50-41Z
container_name: minio
hostname: minio
ports:
From 644f526d8a0caf184c4cea25d836ae870764ff9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=81=E5=8C=A0=E5=90=9B?=
Date: Sat, 12 Oct 2024 23:20:37 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=94=A5=20feat:=20v3.3.4.2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 主要更新
- [升级] Spring Boot Admin 版本升级至 3.3.4
- [升级] Debezium 版本升级至 3.0
- [升级] Camunda 版本升级至 7.22.0
- [升级] Nacos 版本升级至 2.4.3
- [重构] 单体版系统合并至微服务版本工程中。可以在同一工程启动单体版本或者微服务版。解决原有模式下,需要单独编译微服务版,再在另一个工程中启动单体版。提升开发和使用的便捷性。
- 其它更新
- [新增] 新增服务本地常用文件管理机制
- [新增] 新增跨模块跨服务认证开启或关闭控制单元
- [修复] 重新构建支持 Postgresql 的 Nacos Server 镜像。修复创建命名空间失败问题。
- [修复] 修复数据加密策略配置未生效问题
- [重构] 重构部分 OAuth2 核心代码,提升代码模块的内聚性降低代码耦合
- [重构] 重构物联网设备动态开启和关闭认证逻辑,简化和去除原有采用的多重事件跳转方式。
- [优化] 合并部分系统配置参数类定义,增强配置参数划分和归类的合理性
- [优化] 删除无用重复的常量定义
- [优化] 提取通用 Spring ParameterizedTypeReference 定义
- [优化] 自定义函数式接口 ListConverter 代码逻辑,去除 IDE 空值警告
- [升级] minio docker 镜像版本升级至 RELEASE.2024-10-02T17-50-41Z
- [升级] loki docker 镜像版本升级至 3.2.0
- [升级] promtail docker 镜像版本升级至 3.2.0
- [升级] grafana docker 镜像版本升级至 11.2.2
- [升级] zipkin docker 镜像版本升级至 3.4.2
- 依赖更新
- [升级] redisson 版本升级至 3.37.0
- [升级] aws-java-sdk-s3 版本升级至 1.12.773
- [升级] software.amazon.awssdk 版本升级至 2.28.21
- [升级] software.amazon.awssdk.crt 版本升级至 0.31.3
- [升级] hutool 版本升级至 6.0.0-M17
- [升级] alipay-sdk-java 版本升级至 4.39.218.ALL
- [升级] checker-qual 版本升级至 3.48.1
- [升级] nacos-client 版本升级至 2.4.3
- [升级] opengauss-jdbc 版本升级至 6.0.0-og
- [升级] sweetalert2 版本升级至 11.14.2
- [升级] vue webjars 版本升级至 3.5.12
- [升级] alipay-sdk-java 版本升级至 4.39.223.ALL
---
README.md | 7 ++++---
.../nacos_config_export_20240531173140.zip | Bin 0 -> 12619 bytes
.../3.3.4.2/polaris_config_202405311904.zip | Bin 0 -> 13280 bytes
.../docker/docker-compose/linux/herodotus/.env | 2 +-
.../docker-compose/windows/herodotus/.env | 2 +-
dependencies/pom.xml | 2 +-
modules/dante-module-common/pom.xml | 2 +-
modules/dante-module-metadata/pom.xml | 2 +-
modules/dante-module-social/pom.xml | 2 +-
modules/dante-module-strategy/pom.xml | 2 +-
modules/pom.xml | 2 +-
monomer/monomer-application/pom.xml | 2 +-
monomer/monomer-autoconfigure/pom.xml | 2 +-
monomer/pom.xml | 2 +-
.../authentication-spring-boot-starter/pom.xml | 2 +-
packages/facility-spring-boot-starter/pom.xml | 2 +-
packages/pom.xml | 2 +-
packages/service-spring-boot-starter/pom.xml | 2 +-
platform/dante-cloud-gateway/pom.xml | 2 +-
platform/dante-cloud-message/pom.xml | 2 +-
platform/dante-cloud-monitor/pom.xml | 4 ++--
platform/dante-cloud-uaa/pom.xml | 2 +-
platform/dante-cloud-upms/pom.xml | 4 ++--
platform/pom.xml | 2 +-
pom.xml | 2 +-
services/dante-cloud-bpmn-ability/pom.xml | 4 ++--
services/dante-cloud-bpmn-logic/pom.xml | 2 +-
services/dante-cloud-oss-ability/pom.xml | 2 +-
services/pom.xml | 2 +-
29 files changed, 33 insertions(+), 32 deletions(-)
create mode 100644 configurations/backup/alibaba/3.3.4.2/nacos_config_export_20240531173140.zip
create mode 100644 configurations/backup/tencent/3.3.4.2/polaris_config_202405311904.zip
diff --git a/README.md b/README.md
index 16a38165..2fc09bc7 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,9 @@
-
-
-
+
+
+
@@ -327,6 +327,7 @@ Dante Cloud 已通过由第三方进行的软件出厂安全测试以及等保
| 45 | [song](https://gitee.com/Song_space) | :white_check_mark: | 46 | [天然喵](https://gitee.com/natural-meow) | :white_check_mark: | 47 | [firebull](https://gitee.com/firebull) | :white_check_mark: | 48 | [心有猛虎细嗅蔷薇](https://gitee.com/fenganye90) | :white_check_mark: |
| 49 | [Sukari](https://gitee.com/Sukari) | :white_check_mark: | 50 | [生活](https://gitee.com/liveok) | :white_check_mark: | 51 | [hero_zhjms](https://gitee.com/hero_zhjms) | :white_check_mark: | 52 | [panza](https://gitee.com/panza) | :white_check_mark: |
| 53 | [nian8](https://gitee.com/nian8) | :white_check_mark: | 54 | [永恒](https://gitee.com/eternycyh) | :white_check_mark: | 55 | [klaus_pd](https://gitee.com/klaus_pd) | :white_check_mark: | 56 | [starry](https://gitee.com/starry_fanxin) | :white_check_mark: |
+| 57 | [George96](https://gitee.com/george96) | :white_check_mark: | 58 | [chenfeida](https://gitee.com/cheffd_admin) | :white_check_mark: | 59 | [zt](https://gitee.com/javazhangtao) | :white_check_mark: | 60 | [曹维裕](https://gitee.com/dsky) | :white_check_mark: |
## [14]、鸣谢
diff --git a/configurations/backup/alibaba/3.3.4.2/nacos_config_export_20240531173140.zip b/configurations/backup/alibaba/3.3.4.2/nacos_config_export_20240531173140.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c35692121f6b1d35848f92a63ebd183d5d726674
GIT binary patch
literal 12619
zcmeHN^;;Fp)}_0pyGyzo=>|y!6gYGry1P>;1tg@TySp3dlvEli>4xv{zV|*NpRf1+
z0eARi4)Cn!%$hxW_Fl7|%Rxe6g2BPTfgOjpyaanNh(L1#pp_NSn%NLw?O?=cUMy;0<0_}qgjzs_R8So;%~Xb!SbkRM4WK=RY@IfvwC{M;1zlOGP^W
zOm9>cw0N|Yj!D9QfR}6G0G_kVO)Q51DVd!hhOv(km?Lvi?8rbwvMNodFBfqaAXUkP
zMV#nfQP@F^@sgse+!t-cVp5M%Za$}vOn3i)5x1Q78U^P3Y2$Ly2)e78X2Y&4-zO~`
z`fa1mtB(^BIMspBLCfY}$^8R)UMLo>1O|4fV58LR(3Dvk;voes*hG4Z=(Lf$F;B72
zNjYEKe6Pf7(ivWJh#E`HAktl*2*P;l_CB+B#Ztf7n)KT_;&VAzxFo?SWI}K-ut5kg
zu;>3sGwttbHUu~T^a1upj8?Apww9dSe=!~yr2t|aDQI8%I+*Y|a3BZ`LL#4s#d-y7
z!OJJ9-Xg6kctsxH^e*MZpkZ&b=dEs&jDI_pMcCeHcLD;YYzPmcT7^TJuh~o73JVeU
zb$RCy;a#|=@a}PmK(cN;k>DYhy&b)olKf*QUffusG>MX-QcJ5RvX~GO{D3PjS|N?M
zN&~ipN->o~$0F9f4o4RYy7tAE(WfE_e3Vri->bjnN;#{~m2DolY2D?ngaem|PeHl_s=i>Tao$_%Mv7}G5WwbLOo+bb6y;?IU?
ziu2xRk{k>KTo~V6qTZ7!E*VvS2BIn(MCd=0N%P;3$@4ER2NfY%kplLm8^usefePWZ
zYS9{mv@~H*H?Cm7soiYD-DMsL=#zylYwuz~H-RIw9hg9ispR>a6jn}JwI~}j)2=Z;
zm~1b=XD&ad5A3@_o;|TIZ+PLE+ZEv-qpk|I-o#>Y)<06ud)&i
z6iqW7F85p-7S37eGvlKw7dPR1vz=$n<8f}m^oend2~IUU>r`ctEBW}V^=vhRTdl(O
z5TC#m3{+!AW6TEMNd4z}e4NzKH|jX)5<^--ZzMCx%kJ6>jwfWI-kG>?#na=3C)>z;
z>uui__^331)fpfm%G+EhcFhK;d)0`EMseq{N)K}vbcL4>H7~N$ad%JeJYL5W1Q4}d
zf28;6f1uX}XzyTRX9Nn^zbSspis8qCCgHAB7RXqpq+pi50*_rD!$TIH6xjW34g}lv
zr4Gh5@=f>>D7bl(8RsKWlxl3=mey3qwYuA)QzNva?E{=e3v#<_cDLudj$&pA?Rhy_
z#&det!>POJT&0^H^VRZ6E%$34nL2Mz0hVDQq$Rs&5?ph9+{-h8X_1Z$ROl7CVs3+@i{H4(I;ClBBOUg)Ky8x
zh>S>(V-$H(2Z9Z4;;DvTmp|i1)Q~Cfu=IOb$jfme+QhPEYs=%gd_+(c8E^@iCan!z
z7`LGq!@YwmJudPQU|02kMK-l``r#t_)I@sxj@hGaB#jJW9)(>eu4
zdWUF1=GQ6fv=?H9iF<4*;GeZ+Z(S+VQLo7^3%bmYu1jt2T#zexNV%Ucv|=)Z
z22hCzD+Vdyh7DR)v^)X&*JisoQZLrvA&Ca!xkY}13&y3~?tN+|E_liVzGjQ*IYmEj
zjPfdzHzp`AhG5qCx&d+q0z`D&uCZ02V4)AhkUtaTBuP
z_5?qHvf&y1`Ei=3H+%th%BIK6tw1rNnEHvL{l4QTX(?qqJ`9fvV^ek{ILHN3zRnaPIV$CrNY|ANo{;&PHa
z_zRov%8mDZXx$_%5JH2}ekjzRvK7UBXaNl@jO_jxRYhuTDswDoO-EQlHm0atipx=7
zwFeCQSs(+jX?FuPp9jfar*v>))zRTquw@%e#`&u5go*iJKevg!wNo
z4-Tz8Ts#HvvIn~Q#EHi2cv+Vw&1?nMCFcf4)pk+cKf1NZI|-$%bn>i~u2zW%65Bs+L__~pufv~9_;a^Jfi2YITOF|K9=8j*Z>v90jLujYnN8dalcweD1O
zjaiHAQ)v1@oYWvgXK7&7q)@R8jB+^HZuWtQRMfjN_|i~lI4qt;&IJVxj<**%eVG_Y
z&ZaWOFn5F{BN>S0wh8r6{4
zn7Zrk7WN2X1K|16X;hosOX^c(s^kCP7jV8
z_d*XM2+uZ8^!pAK!Q>|r3N4Zhm-#{qFx7D)AiB}pBx?+fVU$6aH!n|#-K5(HC!|oB
zKMXK?em+8?Cv#%{m
zcuu8p@zJi897bVw>xGK|VNp943nrS)YXKPz%a{`>GiD*p@Tt}KO}&vhD|A?_b=Emn
z9T~Yu^8@Pd#dUoLw^!lgvHrl1L%{B<_~6)-#f4?ljI*shYklv{m1P@3{FNao)ux76
z&mrsG9}avyp(h`hb2`EoznqKZppt#=E4b5~%w+qfE9CCXGJDnV_Vi}>IHnDuF6axV
zgP};Lui(TkQ+v>}=IOcZo>~@e2FKfF`nYlk{A>ZU@4Wy-0+W|&SsA$=h)DzGu4^hKKH5+yyy0wVi;
zE%<~Sv}$?jmB&@`L~P7DP#>|iPB(0gmF<$1q+0}1j{=M|K4M*qnV@SK(NuXaL#F}3u^Bn>x%td^(N40{
zR>585MmFXc!Z^q!D$7-J8CHf3S-t*AX
zCP?DBW>RMPl_9Sz_4-2y(R+P}KB0dnAFR*rv#4uyx`BX@pL@19$bY@OEMOOk#xANB
zb<^okW<{1nkM76zmKEA?Fxud?A+IkWEx8*(?M;~>ndZAalf5N{RnrK4O?IR&qp!@v
zFnnU`ks>!XNk5V&>i100s4|QscO*3e^rmFo!2PauS(OD;->tR+|U*6&FoRUkWchVWf^w7-A=q
zr-&h}fIHE+?sZ9nh%iU+|}Y$TNFKk^1-_Dxtq}s6W-cc
z|0n*_EvP#0I%dsF-PUW|8tpLbMIE^_6c@qm2~QNm7q>=nkDecL*cClTJ8sv36#9
zm)wEg;{;}&2=j$cM9H*)kPh9^hED6C|b{y&@Eq_C29E
zWSp*&k^{v#er6hbmx}F^v!;PFk*92xua6dQjbY*x>mbX*Ub{TugN6f`aBo_^
ziRUg+_EaWYXFq2vUmEh@=3keZsY77m=iZaVZ0mwyzC)IP9}BUDc)w=HBF$(BaF%&z
zY`nLSl#)`%50g6hQvBJm`?sqUwL&o66domN7-Yay94e|cidTL}Vst_+|Fzo79e+xi@GH<5r!5df7_noK_0>%@7{7X6dM5{c0<++|E4E
zi+o0Lx1uwZh;hqwkbZ=T3SGB3P*COaE?REPFFcWbm${4fjNRjMzuh}o^3YYK`8i?^
z{RPf_RwzoS)*gTab%XGKy2tLbf+f(z{$JG&^z8tI`2nK+d{{|nk
zik6Z1N|qs(l8mm2hxvOsl)Wc!a8?r!>MlAHSm=@z0WX?A+VF9+v$bJiQ9(e|!}}m-
z*%8}UQ@*mSWDAtg4c_!C3@pY1o1Lbh@vyO?IVg(Gw6L;V3;SUwb5yw=npIcKSw_rK
z)M_coGmwxgOYy0&-(k>lT(eqP9h13M38okpU8Da@sft+pp!9XmkSW9T(g8wd
zGFjP6W8Qr{Y6ho<6xXudu|=}n&f+BAAJh_(E>9Lvu4$v%RKo@^WLd<7Uxt3TOpmkm
zv($)-z$iGFND?=%)slS1zp|J>iVA#5)oh~&2JJ9mjZ+9CZ;}u%KL5&+z&!NxEU^|~
zwX?yZLQvQ)lhZ{G@)8oNeJdi(uGzKQp_o#ev<=q-uFq!J&M|O`cAbaHnyXtBO~>WC
zw6f58u9{jbQ;T;L`ndP0I&&eW`tk=
zD(HSNtl#XhdIrxFLCvy9IF2`!o3@6Jf^q!0(nZg
z7FuTjJ06-3&)CpYy-sqEJE8PNd?r8Gz8kSG0yWD!ST3DZ@ksxfL-XFwYQ1N=5bM4x
z7TF5)CZSxDn|S+JJySVz4zM@!fc1q@1!E0jG}BBv7!BX`I|ViLDa+Tk}ZkuKb+-
zr!`4*9TOrVW&U&5H1}r)2usnq1-eOL;Qn-GNI_@jH>#hFCBVTLXlM1;Wm=?G_6F4E
zE*xPIBM?4sMX@oco@;QVH^xcI;>Q{$i2hg0`&VYt@Ey
zlDc~OxIg!sac6Z2pARgA5$&@gZam?)Yc>X=Az%J$2A!*{CcZM#F?e7ftZMULl245lqkEv3rK5d@qwT&`$S>&
zllOR)u9A#Bug_NY(y+9nMbP+UV`}u4-7PO7Efv
z&p^Eu5@q^p4^4YPa8w;Z`h?yqdrojzCCGeOXyNmU%@SK?7O!X02^Zi58MOOrcUXsA
zELwd9oQH><=~HOIO72;W_G7(#N30%jQf;B?{C9YD;FBfAVvEk3dKSuePsK6;
zlbnd9nk;!WJHy#CNy7QE0KE!!yC;Tb=>Fqq$L5p%vGK9kBNrK;KI7YJZ=MUegnGU_wy>J~e3I7U~IEQIQ~eMLKR{Eo)pOr@AYViAedJ(lfub-J>>e6FV_$>&nQSgejTUQEZWJ@-2ApOC+mY(K5m*
zj8urFR-~eLbyGaeI>Z|Bsb{jKf3@G~_K@61c-8WX;GQ3`)1=!;(8*#2arDpXCE@SS
z9!OC8TVC>vlZzoBLkc<*f)2OblBHjZREm-)AAmNDYM>hrA;q1O8C;;a^xdU9J4Q%H
zZ8|sWJ`UO{RYg$EFiVd^?8XVlFM%;|!bG9Z@l$F>PfYLehw%0#5We8?=iPu>ue#dw
zb4;IBm9&QIp=_w~6PTAghRdl-jxL0{Jh+-3?&HvdDO37d_ufzdi{BrUHF@L&z-6=|
zuuAws&JD@t*py^eIUl2&AL#WWrL
zv`Sn7Q-rGhV=efssD?Dms1DHtgi^{VI_xm1pXS~uwaTH2^mXvHY*`P(R88=2eotS$
zRdl6lyw<#gI*cIMN70`Emn=jc_TMp-TV+l8p1%g};u}}}
zUqY?Xtu6)_D2iVEu^%G-eI(ff4a@+4YqOrpa!Qb7Xw6CIB+~nHYh_B-k_B5LNx28+
zFB6=U5nx_g8C>t{Pjd=#D2n2)U#%Y?3%caIB7_hY7NfQ7As{QwU{B)-^YUTE3{X#*
zBMK%DNRY|#p%B$n)-ZV4riDaJ)>Mj(B-OroqbFr^>^+xk8ONg{3isvd4tq-4LYtxw
zcvdhE`YkRo*X$Ru{7Ow}RZF*Y8c<_3SU8iN?#|Nf$x}kTL*yZyN2o0S9Vs4Qb?cbLLi9s!?!JGj
zuxNt!rVOxt|2Dj9l;1W2h5!}ALWaIy?RAl6_*{MA+%ZmJ-UmqpQ>bFN5kCi`!0jhk
z*;rgLSn>#yvdZlF{eIXEk*w+*b%oF>&g%3ouiE^_hz&o(l#DYOc&xZ8YVpyiv(qGG
zb>MaLpemXJ?9M1s)>UxF;V(XrsCh!(AAavD$`})n#_apY!%qd;GJ7LCCo==1U(`T-
z8!Kx@fWDcfnS<+JNzzlf!5Z`kG>?2v!sFm*evU3&ouOKj;r&cbp1kM1njk)u#9dQZ
z3J(*SgTUdQjg*#EzL-to8yvRuu~qJ(1fZ`4(2DLLd1tHJLBwI@TZAFG~&zm@b=?
zKa1^{s-dpD{`$2O-d@=2NlfGeK5tUQ9+p+DR*sM{0TUxlOxIXW&2D?07lfMCj1_!u
zmU|VsSHlKP1ipEBZ_yOn)|Sp7$IW9WJ8cHbMW#cW2n<$&Sz#nga%_k%OEWeuZ&LN3
zmhY|I>?&%zQL`ipJXOG`nmN|!b5HD{w(VT+TOHdvzqduza7;9QRM=l?J)S`c98zVc32tN+XGDgegO518npIj
zK?~S-4HG<;HS|K70UGR>El24sSB2;2@9Sjbg6F9KD+(^0q&n=6$7M)DaJi&D3Xy!E
zO-LS^RDB|0(>v;iE{x_~BOXs>1sQEJ6w>7;IX*Xy$66c3M#5Uhdrn8h-EoG}z+liO
zeP_ep0~7RRo?Qi(bysYrpeGJtpF`$Yl6MX_xH%8@lcCjuyI@=fcZS89t~nzaxfwqF
zq};QK3`PP?1giSQDWBa}Pt_-hb;w9cfO=ds0;&wSJTvGe#@1~jPf9p-5B`c(F4RbY
zVbIcne|!_6{0DM?_V&MoYL)VUbq6V0Kk)10A@aa{^Uxpz7}=rUOv
zb?UF)8yPz}k#1DE#`A-S*CFs^ZCcaN#0
zf^l?Ev}7`1f!=0Ja;|8t@kT47O*;ak8!h>Bd7qOxJ|lGBk-%`=_?KJJx%jO9IvHnr
zQwx<$MO>WyXg@CPyJFQ+>cMGM>9X&Zt%J`93H&`Iz@9H$cEl0dYTDX1nR+0umvArN
z39P~1$0guB+Z-K;_RK%V<$aCtyENel_*>}mj9M^VOyAOjKbkD>;nm7&4^gpL0R8~+nF{-2$R6m)KWBW(QJXY*HSm7=boM8FDq
zX?^OkIa%N{i?B8|MoLc>fIqw4znwyvt>a$S1fSmTy?<`uEJmBPS{}X8bnrO|b#4l-
zDmfKRpCs!JjXcigfP^fv7$7Tjt?4^j<&?s>BgxZDZ@&Jrivg2ZLC`Xuw#d*rU7DD-z<_XlrM
z5}zzrGcI;JstT0#NU?OuUK>kdzW8>8EOV454<LYb*AEI&T
z8zBe1YE`z6uZNlTdd);bwc4NE2_zz+;O}&1TjU0(ZFuw(cbFAaWoZbwjvJOL(_w$T
zQRv&cn9**PvNEvV@)*p@{UTiPqkMFRu#&SLdIf5R0lc1bWa#w@6RvKXK!E*J&(Zuf
zX^Dh?h4c_L$*?=pS@j%L7y$2!ts)oU@WmT_N`wXeVN2{gL_Lz=K4tBE^F}O$ZlMXjd~u#0$v8iD)(57yHSvPK
zU6pA15rzb?!Bg8tywMavuiMTWRcqGF4Iz+yCwI+d-_m(o0|l+qI>r~#&)2rQ&BW%5
z60mS<8gbH5^dd+?MRNR{x6cW&*6q7WJHBC16E?V=>FP*px^D%6D`%;=@7Z>(-nas^68sSifPayjA&*5R4?D6~f_()p7F%_0ms=EVFZ!G6Un0*{v*_(@=8TbF+@t7>a4m=%D&pGg`!R;w?+z)f6>iIbm@4*A$km)ktnXY`(vW%Z}TJ#&_GCST|
zlI4Sq258mON=U`rD`1=o%_q!IVLK*5R@{c|5%M6gZ_ib
z%E$q5pGKHmtt_kFwSg*LkVDTiY~C%S#$0t#FTTkil1Z#>ri0RavAM5OQTvm+rj#Pw
z(RRmW88QGI7J4?t?Aa<7+?;XC66YX>r|oWIwqLg-adMg7(hnB!E(srV;VPjcQY(YR
zknu+5*v|>53-~)2+s{Tvvi1+o9h%bVPwTkUUxp9!WN!2OnIR=U0noQ}5WT_G#2(e)
zF5P7XLdAc!E~OG!Rzl4oHlHQ_;;iSM86$QWd~_z8ID8!LsFRp3PD?YS*22YBpQf#M
zGGrhqt6mMR|7mJFAjX%e^LaKwmOin6R|`A5dfO77Iclut3D=jfWAL>1(Ed@kA5SX$
zk$AP!!;3qdI)sCvV}nIbYBOY+?|CF$HNr&(amf6aG6)WV3HH-%`p_VGU)TLQev_0hsS6SFXmslyr}7`R8)b
SF!z7P2L1GbW|s8#pZ*UXQXnJ%
literal 0
HcmV?d00001
diff --git a/configurations/backup/tencent/3.3.4.2/polaris_config_202405311904.zip b/configurations/backup/tencent/3.3.4.2/polaris_config_202405311904.zip
new file mode 100644
index 0000000000000000000000000000000000000000..fc5e846f76735d9b78272a4ea05763f13783cfb5
GIT binary patch
literal 13280
zcma)iWn7e7-!gigY*9Dcy~9jF29`AGO@%8xJ
zd%j#VAJ%WKwb$PNTFP?JFxU_X;Lop%1pI@8slBrW!1RfUk&UA%Gr$VyWWwxZYwf_|
zW@K&UIn*ZG$%@f^)VRVw*k+kTbKpGR^7--A?n})$z7#D9PnYKsjJ>1}9Tx%gA3INZ
zmX|ScE*YL1wEELIOjh2ZQHu7d3m~n-9y`!9ST!)_XvqdWRsSN74m5j)rftbf9>m#`
z8?xMXv!qvJshY*TVpAUPwy}luSue0i
z;(w#S$ml-|49h~ZVf1`wU@vhKM03Ms$5CxTt!+lbLfO(to`ad&1NwUN>8n(p5c7o#
zM1*AlCC~tJL?x;69t}dwCSAiMS2H)0AA*gjdA=rpecNG(}Z$Zm^Ak?2DB`7}p>J!&dWk
z2wO>Dg~+jY_x|l@W|8EEvA2MGu|ns*3hOGz-wfDXk`(>l3_Si927nF@%tpo*Ru+zK
ze=$)N`?=&TD@M>o>@iwpo$jZZ+gadRYW8LDOi9nv$eb1r>SuZklCz5&gJ~UCJoy;K
zHzh-~5Mq^5Zx81oR?bpi-V;Mm#u>a5ZNJ0<=tFxhjTu3eNicRBM{2b70J^uOGc_1S
zBinS7`hEPDrI)u3R50?ny92(goQghZv0WiIJn#$}kLI;UA-S_`(B-9F(xrNvn+S*c
zaWlWo#XaD@YnL*oq=Ah#UG`%SMtS&b=K_HO45xY+oI#Oo=jtVq$EFa9pDSKJ(TQ=y^poF;I23ol(wU+Z%|R7
zU-X~|>_}Wc=^=TYLw~g(;7jKRkim^OjXL!NpG7xmiHv%3
zb!s<-2ch9-qg^j916QWD#f6&T3_L&;%s5mJ6o+apxsxnJa1?%7Euvv*sJ>`6r;A<{v;8KAri}KDIlD|&BFkhH7Bl}_*
zXvoDuN=-x)<=nO>R=b@Q>Xlr2iS{=|iBm;LlVAco|9DQR|AiuBTWgzt$kbE0?VC)S
zq`#1zk9<@OTqUSe7d+EAL&x|YYYsKnLZ!lw{OrY^
zMu4$c6?CnBl{YH8`5!E2)%DZ~EObnjHGv9~xFKK4?nhjkTaNtKT<6V%cku^!1|O5c
zi_;FCSa&aohoxv}M{$H>9QYqG5VK5lXuhc6xD4R&y1GB0pLa&83-LVnBZl)xn`zui
zo~Gy$EgcjzMHqNTLqi;6fvhwwA_y~V5z&dBc$R{T&5JKz1rml`C|b7(|LlHG^!JX`
z1jbYdgLeb)N72%Pcf{5nXyOELv;f-tBYv3LI9u2QZLCdg9RJd8k=n582^U7Q56ALD
zR)>o@I{Og%v#-Ub?54?(V#o>SW7={=x{^~3b53H0m&^P#u#*5?GT`_FX}my78n}F_V_gK)H<5
zs@QQ9nB8VZSpQV_xpac46s|)ij>dw0dnMHvIa+E*1|If3t17O47FP!0JSHk&A*S+U
zCFl@XGVF7AWWy`yQI||oFuXUQ?Itxm%<3U(8`WfnrR@$l{Y-tu9>v;y7$l>TAZe;J+i52;22(-P_
zOX+lp7eN!x@`Fv0T^Xv{$i14IQy$L8Kq?iL(tX*e?gvR9&2`5Ka3`Ekz
zCc}~%m!RE~*B*SE6Hi$9=qpPIaU4W258G1p29z2Lc1k-wy?4>(Bc{2|=PI3Zk0B+e
z;M;smUNK9(aDDoP&i44^#wFjp{Bm%)pc_RUC+M-Uq(2!v=MtN}Vs}E6dyD!6X>NMK
zL9tD68TuK*b6}h$5@BYVO)r#MqHxSg8;E-@@fh!Yefai`EqOPq!@vSh!X|Gl&03
z7W`;z1h8awu(h|aF=Mti0kF7QTTNhtGH8dZVxVB){fd@Jf#L0v$GomXTl=J5O_0
zP%}BjKZW6l?bdgqj^rcc-@_M`lY??I*GKZ(EQdkL>l4q0xsLInY3#ellN4sMthS_m
zoK3CtF`akoEwII5^R3;)JM2k!j`k3tO{YmSI;w|AA)q8O#ao&uDRJ-ir!Wnl|5
z5|IktTc@_DHWQ;#f|$`|vpyxAdmJ8N0iGH}fXA0c*ZyKEWoq)uy$IxiE6$P2kY<69V+A;(Tn(VHtVhSZ
zvN7Q?=~@65Nt5xIDwwx$X~gyvN!@BU9wd?^r|TsQzE^(3Dwt^E!_}$|A~JOl$IvZF
zeKkt>PIP3_Bj?*Qn4c=39xudiG9U_(#TlMk_f8$&&Z{&^9pB+(7_O^y-i_F$z(^j3
z*b#?YRP(9$2WcfW39{=IImI
z%<(KH`bRYvh+$~?7iBInZ$3+>senFhAa?j~A9@Q9=
zdeZaI=T;iyE+u{aXQBqvRf@o#k?JUW#(B3dl*pDWqf(q^HD#ChlP{h&WCHUe^bg>o
zR}7~kc}!IWS$SW2(nCtBZY&wr0(9ITrbIxf@^Xi|kBE(*P|BR71*mHe^@PY2&_Xfm
zOP@bj@xsd>PlA>%|hdnvQtSv_YA7=HejFh`eHPkF+Q&(H&
zsiwI9!vN2aL%)Jcp^t`EFEs)rkK5(f^__q3i&G}k%ANWFN5@KOD=hNN3y`)x>
z=4&(vg!wIxsC-azqSYa83s%f2ofNV3jby=4d`#l7mb1Cajqg{7yRAoo($NM@_b0RS
zTcwH_0zN0>7Y>~flSk1$X#!qfH>dHWqkUMC^HR`4>xfK1XWegn-gWytc_-EEN9bfx
z*-}1=Jpj4ItG_APHSDYYmVt>iQ|p!Y+G|yxdFl+TYBMp3na=7^a>O?tI?v|niFMl$
z3DWDRb?+hMn9gHvzC2J7;`3S^i9vweZgPuHt~cJTNe>^x$%e;2jd5dbjy=*I<-1Z<
zxvaa(N^i+Fcg%HVK^y`WD0!#fscOdCoxdt<>RHRL>vUZ9;z-v7NYTTSreKs(JG#$b
z)9Y=m#>7$>nrOL8g?(JBNRmAw#*H@}lYIMSXL-Q~e6@bBuOh@c&`81GiqQXb*?ucA
z|Mjx{>!MYE4*bZ4?Oi(Y;9ImLy?<_@ny?{gi_kc~h9zgFBGt_*{9*fZM{Fm0A5{gy&bc1ZE}xB6S02Z3
z8oyPO{}@(Tv=!QDYl5nkNw?eqB^VG_KXEfRRJX9zOZhJCl>{f9=w-6drC&%3FsR&!VR+9SA#2`&W(OeBRcLDtYu7h@!>PA(e$a)r>Blinn
zJDR{+RS6!QN4HNuA^KfMikhz;{j0t<0`^hz+$YoX2)ioR82-?6z0LRPqlLyfUk4AX
zv);o!wSZtXH2+OT`9mNK#rHelGfO`Q-ElmJLm{L!v9FvTb
zbl@e1@OyTK<`7)ENmRp8LphkxWjgFbGGf&=@luzsxqo<2<)bF%mHE=O=d9TMiKD%f
zHRC)EC7lpHC_=w^FC*nGal6)PGH5h4fpQ(W$w1?GAI3nBY@vs>
z3zY6@5Z8t+>J+&{v1mCwy$
zcLFyA`YY`5H2UgCWJ8o%94ltn`Mv=WmYx*;?F}a?5_xn!+ERm)R&bi~{Tu<|sXFh#
z-{8RgnSbw7FoMq!0BCLfOQvmN?W|r2AEK`qodLfbssB>uKPwpD}!lhFp3Iak<(OwXb;oNZ<@PzLa
zLzusD7)D5yRAf0)jedD*j{^$s$4oz_gxSQ>!Af_H{B(j^*Aes)MTV75sOGsN14G^L
zS{~a_9-gLR8-KKc!l^@Tdh|+Ju|6UTKzIZYsaO!bY<5yzw?mnF`G95?zOYR_HR#}B
zJ^uvg1I}%}GvN{!lV1*g&u8FY{+$WZ-!tI=1XvhZ{ijqOu$dPCcPfOxwsw5-&~Do9
z*Nbfk!n5|J+2+DW?ZG8VMUf~}P(ED@*LuDZG&=iCU~3RXI7&d0=p=3M;Q=yt{1|q{
zH^9u2T#4g}O1ojmr6;|qVttnRtgl)_;akZX&rh>k{!%D@&5);urfA{yx2?tX4G0jS
zJb7PY4Uo)G1v2--Qj%$gELQ~Cjz+s|ZSs_JF+1!eY8(1U#4*2i!bzPA-G{~NHD?M?
z;{`xco9Mo7P(FKQDkSJOn1*s2{P|+B_O9UWbI8rz!F0&m`RK+-zt4+Fjque|aQ96$
zEVW)8cWea_4x|qXN^HanY|SAMLLiV!V>kzdTMtDhrfyv1SdBGW1D=;|ZL^w=i^4Rf
zeMnAh5d-f;q%>4W_;f~pX$ePcHoWk`(x4g
zt=;w;8QYsWe6JJ(;}xRj`7i=6&|O_tD0K!LV$STlIL{PN~R){))ak%h}
zvzo=4KkAq8+RrqWiCvCqe0bo1;~lsi#wX)dgAb>o!g*58L9MwEMy2*a+Ki5PJGV9m
z_ls9wC;F)-S$cGHdc$tNdB4#4IKC-QBtq6A`ve_Y`qlN?P3_fSCp2H>yR2~&;@pOy
zH-U8lpf!6gsdI7q9s8$nvHH*pXD_>-1_wwpUG&O*ywbcy(CvhK2p;nEt}mS-^xBE=
zr{>cmNW^dZ{9@krLmr1g&HTYRMVz%16!St@q+=ChVY-`J&fLWAGiLLJFw|T7>SF~^
zL?({T6kDmLmz0psB0kR2no*bTncbVmkLGM%I7qF>D?Ad&*&$eOnlCV%F=Zk?AhJ7hE9s6-mWM@vaLw&v$W_UCL@{J$A51*nd6rI~%
z;P4v`wRWPSW8YY-{THJm7$%%l;-KAujT1&VisuLw17y*3MkM4Cpf`oL05A>7``K6uBTr
z`Qq%;YvZ-d|LW<)(%~KstfiPg)^gv{i{I+W#NvAgJ1|z%CO`y5^5TtqNNg%|AWK8a
zJWqr;6RNWbkqZ6pA|rzMbHdQ{qle*_w+DrtdY(SW6n-5q0<)5P6R#=KKCuRO-1#%e
zc$N{mJ;phVZO*uJI=aLDO1bGVvaapNn7k-4PO9eVleK-A-&YBxDA>Qk=EcuRb{NC`vLwri(9SsX4bjNSAm#J^2h1;d57oR)h^36Ns|jpfw!v0f4N?oH
zMJP@Z#X74TPH$TS6RG)>}V48f$6aJ;uZ)
zvPF|D>V^(x6v9j5J)nGS?X#cQASOE}mEW3$4HRvjN|JudZ!93?!f3}Ll(tGoCrvQ2
z_{{U;@Wj@UA?z94*oiBh@XJRsy_q5j7otnr)0lA85vZZZ1rGLXFpdoaXT6|anHc6E
zuUix#ORD9|sECoLy{6E{z6EG^yw9XmrZptBaXzyfD1OjaW$__ci+OXtE>g~wgCS7X
z+S=He4<0~Q$KqD>x#J=v5|+hUg{V9y7tQJX#+?@
z9f{lyS_l>YMIlJvF}`G15=hPtJ0=rCV$33=j^Oa?PD{8Qf!tJaI)htBI#dE_p3WUZ
zG?h4-7iALfW1k`7uHqMrl-d>m7v^&T@SrY$qOb>lm}j59l*t=Y8GK
z9Ge(~Oc?MK)k);N>;UW5inS6pR$E~N3UYH8d)jkDF18N!hSh<)&XZv36@UtVLT=E9
z2BlDFdg&O{#aklsJ>G>u1EdYzKYn+%O
z&az<=&O4)*v*`VYzq=igYvo1Et54-1iB8iUstB-=!NY@1DrQgNUX%<&3STMBHEo!jL
z=prpWFz#4POdnaGz(#c6`H{-MCzffnWxa)2fI3}E~a2o0H*l+-uH`c1$B@e*U
zHdbU@O!4bGN!GkQlw^yFJ;S=NpKiWh;cizBhjqIRS(r^qZ@8XQAMiFZAO*tUbYWE0
z-ko>%!m7e?Z#@mx7bTJR=03YSwWSfgnQMKuEJ+-8xyY$~tEurM!HSMYmWiF<87I+P
zAj`JltKFUPot+P~9jEa!Z|UO(##cI~3`fOWHP}$#4Id2#3La{jYvH7eLg
zJ|sD=eADXp26Kiu)#23;l>k3o`lJ0TS{I405-RYcXznG>z0v-6Om$S3;?fwTf=5v3
zB(8|69G!z=LPZl#ZXYv65hJ&JiXfT^4}A&uWKFXFfGc188<%b3PA~UZhbEVQJH{Xw$K{Q|JCgAIsT>(0qseO
z4QX*a;PWls-xmdZEwbMdGz7#P;-4;x|ErR*1v)sIffGWz@5wy4l0ge#1qX21X7S*X
zKtT>bh=!ma1xqdxTQ#a&7dU`3Q|+DH7~GSvyNx|xxH5@=49B*v18Kq=`@noePJP%`_9lZ#)ZQ>t=2h>+JWXR)k#V`9y_n7!{q
z>^qJp2HZBKPNr^Gw-2?+`JWQptN*K_=4i1nF3
zmb|CG3JnZF`cc|};Y@Vdk+Tp!9>17a=}_6e6&^PoOxU^q!Jge!O`T72X3t3yLtl!}
zdT{<*MWA>08|E$4JbVxayi$HozWR71Di0P_z9WFG2VsuG
zY)71!jdZtvz6+xP7fRxE7iD0HD_e|0xk}T@Kxyw{
z!_%&wC6Z}0WoZrW<6A|LclRjn2jun%$`5x$Kq5tVXKsKruHbUb*)pH-H5`~wf%q-H
zk(R-Rw|L(OrK#%G9=Msc(s+DM#*-65DypHs%K4(ugvq|08FrX6>cYL5$pr%o7cozK
z2WMGc%Z6JCwzJm&SRdBbx?&N;0LlMa{OZ4gT_EVdLItzi^+$%u|IF}T)aI%yM9+g~
zd+@zJE7_VziX+&_i*pmANKF1&iXJ#p>oXaslCSz=n-y0d^kW`T&n~$~9_Tl%G;w=+
zo@9@>SG+wwAfjl0C(|kxLrr>*lVe9HcQh`nd#cEPD2937`AXN^@I8eg<|=!8RLVHv
zO7+QS`X^YAXYpZZ%)(Jf>ie~6=Cd6&axR9F{JlbWBQ$tPsKZ-Zyy9H0>X5gYpPI>z
z9`^FjXKl#X1S`Ix2y8yNhO-H#u@OKmIYEN2tSTUJ|9}!m{$x_%<{o*7{Nu?cob#4K
zck7(*w2%RUP?Z+aM(P)M0m1AiHK!y3IGN+apigD8=cn63T0^^5&$~3A<-_Uqab+7ZTWO~Cbj}--jVN1TvfVN#
z4}#j^N#^+HJqrp>`^Md)62*~$QHy6!2{;v7gJ^)C+I9~pVxXv?Jq#C!WwWi=G9ys6
z+$>@{d1h%1<)z
zzB};NJ`+FgSssX}ca%d=FjPK5bs~=G37zjL#0#HVdufU#-fWPcG0A^#Jz`u{frKLO
zClj>C%Py)IxHemtHZucTG?wwpMYArZT
z@Z&Zib|W3NH=)g8+lWdmOLD`}aKfExrcJ|I#a>3`W1CToUYqLzjmqq=2m%fT&QVJ5
z4I}0?(Hk_>15ln@!O9xpYmU!zf6k726I;AcIPb&biBd9?r
z2%$}xC?S1v8+BIu!2QLR>J#*@r?{b9_NNbY2GG_%rpiO_OlWbQB4WY8KEVAQ3!>@H
za8SWf(CCj*@L$qpfDyp_yWb-swpfw|L%tu?GTBoI0ohsCnc_N7C6HaQf(7||Q9@K1Q?!5?Dt9%;uXE?g-
z$^eZ1$7Nk#i=lZ6%h9iI;In$7P_&9Hk7E@l(fKrp;br^j;X@At*X|JEm)$wb7zQc^
zt0kBj@AxTVPgG!34h|OB-ga&?g=wI6KWh^a4<)gDQjiEKt~5Ma@y^6B1X@3qHkF*j
z;XTikx5pA@)|uS_6hYlh0?Sn$Gcg0MrX}7ilMWf)5-i~p6M?}uN30aB<;KYt@6?5F
zkCxdo0f{ZrrDpX?_g@fkg{9dCHq=x?C_NNyJkxSe!=qk~t>vzn7~d~sja=gV&9W)~?RTZQN2W`we-VBF9A(#xG_T$vh4
zMOSo*T=#Wsv$i;uD~4KDUC<)E!AIx&>jo_aJ-bH7u3X!$&L>GHT@-ZwVu=33k`W(d
zCf*u1*kW@TM#-w
zYkbDA3K4;tG7H%dawZtzD3hCmvUrlb{yxG$K|^V=kIUly9T8SodHD#V+qerRHoU+_
zZcX0nC6fhmvd9i3xc*VDy0&gO1WxyN3(@5&<5T^anJ}IO?5$jWAZ4N#=QHSPv{W@QL>6&!yKI>o
zdxE(HMqo_JrFHcL23vzf$rqNoh{DFo72%X~T!Lv-IE92RFQ2Oe)Z%H-mB+MJR!!bM
zzOITV|9fCuRsyzIy7~H(C*A@3d|vleFiTFd9X0y*@tWwF!nc>_ds~YIr3OOR76e9^
zW`+R7p!DTW3yJa6bIRRaMZSGaT3^KWs4VMR}3Ml$Lr2d=`e6pmYo?F`{5n_sS)YF`>Py`u1mu
zxu#xU73fjq@aQM-*PV(J3gTevWbxM?0idR&ioph#)I4pzku|2_+Wto{nq~KNMG}Nw
zj_ZBCrLQHG3a(5(){-kjtj&|>>0e#ESv_QAIpRR6f0%nj1^il{pEv+OJ#cX%?Cpp6bSagg!WKhclv%%W(>7%O=8rc
zzAc!31)1UDDq0RVE1rPQ>TlTomlFmZNncdkcwZ3U+x~8mgfKR5YgS|%&tpAeFp4j<
zj_?CcaquMES2Y^AfYTEp&y$d0uMcDCVtF@(r(?B63liU)F!>7-c>R)rgkUF(s?@j?
ztz|J2uJx=8>Lk6ZrU;}3gm@Yuh-(dMf+a!6C<0qp(*YLOdY6tF02uS7+-qJDR-Ds{
zsQYT(`F!Pc>%y!U?1brGPU=RPpE4|AJdg
zPY2{A4HfEZ&9q3`NqJ{eEdua!iNz*#=N9q-lk%OS
z(Ne?QBQOE9-~g>G2ML7@@xu%Kvqkt@K>p|Yqci$fsGq&I--aAN7Bo0I{TAv!4&z^u
zezuH$^XC3ou;7>a9n!B(-Cq%Zc36`CfCE3h2InciL;Trz`YYPc?m+5)pnU`j?RRMZ
zpGWgo$e(>%->SMFOAx$k|D(z9SJ0pR2^2pN!B6MlN$bCQ68<)T{R;QglS`4#l%!Uv4<(;}z*Bj{g!gkRBqPVE1=IUe9!=QoW0D4l+V`ZWF&nNH`67#oj
F{|`7JE_46@
literal 0
HcmV?d00001
diff --git a/configurations/docker/docker-compose/linux/herodotus/.env b/configurations/docker/docker-compose/linux/herodotus/.env
index 90163a47..b793fd54 100644
--- a/configurations/docker/docker-compose/linux/herodotus/.env
+++ b/configurations/docker/docker-compose/linux/herodotus/.env
@@ -1,4 +1,4 @@
-VERSION=3.3.4.1
+VERSION=3.3.4.2
SPRING_PROFILES_ACTIVE=alibaba
PROFILE=development
DATABASE=postgresql
diff --git a/configurations/docker/docker-compose/windows/herodotus/.env b/configurations/docker/docker-compose/windows/herodotus/.env
index bd63e485..9f098ff1 100644
--- a/configurations/docker/docker-compose/windows/herodotus/.env
+++ b/configurations/docker/docker-compose/windows/herodotus/.env
@@ -1,4 +1,4 @@
-VERSION=3.3.4.1
+VERSION=3.3.4.2
SPRING_PROFILES_ACTIVE=alibaba
PROFILE=development
DATABASE=postgresql
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
index 4a80f89c..1becbd97 100644
--- a/dependencies/pom.xml
+++ b/dependencies/pom.xml
@@ -28,7 +28,7 @@
cn.herodotus.engine
dependencies
- 3.3.4.1
+ 3.3.4.2
diff --git a/modules/dante-module-common/pom.xml b/modules/dante-module-common/pom.xml
index af94bbbd..9a6e1405 100644
--- a/modules/dante-module-common/pom.xml
+++ b/modules/dante-module-common/pom.xml
@@ -28,7 +28,7 @@
modules
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-module-common
diff --git a/modules/dante-module-metadata/pom.xml b/modules/dante-module-metadata/pom.xml
index 5b6dad93..9e483780 100644
--- a/modules/dante-module-metadata/pom.xml
+++ b/modules/dante-module-metadata/pom.xml
@@ -28,7 +28,7 @@
modules
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-module-metadata
diff --git a/modules/dante-module-social/pom.xml b/modules/dante-module-social/pom.xml
index 89d5cc2f..c9dba5a8 100644
--- a/modules/dante-module-social/pom.xml
+++ b/modules/dante-module-social/pom.xml
@@ -28,7 +28,7 @@
modules
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-module-social
diff --git a/modules/dante-module-strategy/pom.xml b/modules/dante-module-strategy/pom.xml
index 72b4fa02..dfd0ae94 100644
--- a/modules/dante-module-strategy/pom.xml
+++ b/modules/dante-module-strategy/pom.xml
@@ -28,7 +28,7 @@
modules
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-module-strategy
diff --git a/modules/pom.xml b/modules/pom.xml
index 382b81d4..033cffd3 100644
--- a/modules/pom.xml
+++ b/modules/pom.xml
@@ -28,7 +28,7 @@
dante-cloud
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
modules
diff --git a/monomer/monomer-application/pom.xml b/monomer/monomer-application/pom.xml
index a0351e79..c74d8f8c 100644
--- a/monomer/monomer-application/pom.xml
+++ b/monomer/monomer-application/pom.xml
@@ -27,7 +27,7 @@
cn.herodotus.dante
monomer
- 3.3.4.1
+ 3.3.4.2
monomer-application
diff --git a/monomer/monomer-autoconfigure/pom.xml b/monomer/monomer-autoconfigure/pom.xml
index 491b2849..7023df0b 100644
--- a/monomer/monomer-autoconfigure/pom.xml
+++ b/monomer/monomer-autoconfigure/pom.xml
@@ -27,7 +27,7 @@
cn.herodotus.dante
monomer
- 3.3.4.1
+ 3.3.4.2
monomer-autoconfigure
diff --git a/monomer/pom.xml b/monomer/pom.xml
index 4e4c5264..9a62e538 100644
--- a/monomer/pom.xml
+++ b/monomer/pom.xml
@@ -27,7 +27,7 @@
cn.herodotus.dante
dante-cloud
- 3.3.4.1
+ 3.3.4.2
monomer
diff --git a/packages/authentication-spring-boot-starter/pom.xml b/packages/authentication-spring-boot-starter/pom.xml
index 714278bf..c1bcf69c 100644
--- a/packages/authentication-spring-boot-starter/pom.xml
+++ b/packages/authentication-spring-boot-starter/pom.xml
@@ -28,7 +28,7 @@
packages
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
authentication-spring-boot-starter
diff --git a/packages/facility-spring-boot-starter/pom.xml b/packages/facility-spring-boot-starter/pom.xml
index 66bdcff3..9a7ff966 100644
--- a/packages/facility-spring-boot-starter/pom.xml
+++ b/packages/facility-spring-boot-starter/pom.xml
@@ -26,7 +26,7 @@
packages
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
4.0.0
diff --git a/packages/pom.xml b/packages/pom.xml
index 481c8c11..24b15049 100644
--- a/packages/pom.xml
+++ b/packages/pom.xml
@@ -28,7 +28,7 @@
dante-cloud
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
packages
diff --git a/packages/service-spring-boot-starter/pom.xml b/packages/service-spring-boot-starter/pom.xml
index acc0244d..e5f2d5c2 100644
--- a/packages/service-spring-boot-starter/pom.xml
+++ b/packages/service-spring-boot-starter/pom.xml
@@ -28,7 +28,7 @@
packages
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
service-spring-boot-starter
diff --git a/platform/dante-cloud-gateway/pom.xml b/platform/dante-cloud-gateway/pom.xml
index 65191824..0d850c72 100644
--- a/platform/dante-cloud-gateway/pom.xml
+++ b/platform/dante-cloud-gateway/pom.xml
@@ -28,7 +28,7 @@
platform
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-cloud-gateway
diff --git a/platform/dante-cloud-message/pom.xml b/platform/dante-cloud-message/pom.xml
index ff25be4d..8fcd23b0 100644
--- a/platform/dante-cloud-message/pom.xml
+++ b/platform/dante-cloud-message/pom.xml
@@ -27,7 +27,7 @@
cn.herodotus.dante
platform
- 3.3.4.1
+ 3.3.4.2
dante-cloud-message
diff --git a/platform/dante-cloud-monitor/pom.xml b/platform/dante-cloud-monitor/pom.xml
index e4e83df5..9dcf1b3c 100644
--- a/platform/dante-cloud-monitor/pom.xml
+++ b/platform/dante-cloud-monitor/pom.xml
@@ -26,11 +26,11 @@
platform
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-cloud-monitor
- 3.3.4.1
+ 3.3.4.2
dante-cloud-monitor
dante-cloud-monitor
diff --git a/platform/dante-cloud-uaa/pom.xml b/platform/dante-cloud-uaa/pom.xml
index 90c75475..56127580 100644
--- a/platform/dante-cloud-uaa/pom.xml
+++ b/platform/dante-cloud-uaa/pom.xml
@@ -28,7 +28,7 @@
platform
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-cloud-uaa
diff --git a/platform/dante-cloud-upms/pom.xml b/platform/dante-cloud-upms/pom.xml
index 0e13a762..df5fef5d 100644
--- a/platform/dante-cloud-upms/pom.xml
+++ b/platform/dante-cloud-upms/pom.xml
@@ -26,12 +26,12 @@
platform
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
4.0.0
dante-cloud-upms
- 3.3.4.1
+ 3.3.4.2
diff --git a/platform/pom.xml b/platform/pom.xml
index 31d1f472..f69b73d4 100644
--- a/platform/pom.xml
+++ b/platform/pom.xml
@@ -28,7 +28,7 @@
dante-cloud
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
platform
diff --git a/pom.xml b/pom.xml
index bd181a16..753eb512 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
cn.herodotus.dante
dependencies
- 3.3.4.1
+ 3.3.4.2
dependencies/pom.xml
diff --git a/services/dante-cloud-bpmn-ability/pom.xml b/services/dante-cloud-bpmn-ability/pom.xml
index c2bcc15a..f2f6f88b 100644
--- a/services/dante-cloud-bpmn-ability/pom.xml
+++ b/services/dante-cloud-bpmn-ability/pom.xml
@@ -27,11 +27,11 @@
services
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-cloud-bpmn-ability
- 3.3.4.1
+ 3.3.4.2
dante-cloud-bpmn-ability
基于Camunda工作流的服务
diff --git a/services/dante-cloud-bpmn-logic/pom.xml b/services/dante-cloud-bpmn-logic/pom.xml
index 0a210c83..60e3851a 100644
--- a/services/dante-cloud-bpmn-logic/pom.xml
+++ b/services/dante-cloud-bpmn-logic/pom.xml
@@ -28,7 +28,7 @@
services
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
dante-cloud-bpmn-logic
diff --git a/services/dante-cloud-oss-ability/pom.xml b/services/dante-cloud-oss-ability/pom.xml
index 5612398f..295b54c1 100644
--- a/services/dante-cloud-oss-ability/pom.xml
+++ b/services/dante-cloud-oss-ability/pom.xml
@@ -27,7 +27,7 @@
cn.herodotus.dante
services
- 3.3.4.1
+ 3.3.4.2
dante-cloud-oss-ability
diff --git a/services/pom.xml b/services/pom.xml
index fb420f18..e9fcf47f 100644
--- a/services/pom.xml
+++ b/services/pom.xml
@@ -28,7 +28,7 @@
dante-cloud
cn.herodotus.dante
- 3.3.4.1
+ 3.3.4.2
services