From 06c850184360583d0f2e0d0df3272f8ffa511c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20Zim=C3=A1nyi?= Date: Fri, 30 Aug 2024 09:31:56 +0200 Subject: [PATCH] Fix SQL scripts for MySQL. (#2440) --- .../resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql | 2 +- .../mysql5/jbpm-7.61-to-7.62-TimerMappingInfo.sql | 2 +- .../resources/db/upgrade-scripts/mysql5/jbpm-7.72-to-7.73.sql | 4 ++-- .../db/upgrade-scripts/mysql5/rhpam-7.12-to-7.13.sql | 2 +- .../db/upgrade-scripts/mysql5/rhpam-7.13-to-7.13.1.sql | 4 ++-- .../db/upgrade-scripts/mysqlinnodb/jbpm-7.72-to-7.73.sql | 4 ++-- .../db/upgrade-scripts/mysqlinnodb/rhpam-7.13-to-7.13.1.sql | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/jbpm-db-scripts/src/main/resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql b/jbpm-db-scripts/src/main/resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql index dbb5120d8c..b9822386f8 100644 --- a/jbpm-db-scripts/src/main/resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql +++ b/jbpm-db-scripts/src/main/resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql @@ -102,7 +102,7 @@ ); create table TimerMappingInfo ( - id bigint generated not null auto_increment, + id bigint not null auto_increment, externalTimerId varchar(255), kieSessionId bigint not null, processInstanceId bigint, diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.61-to-7.62-TimerMappingInfo.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.61-to-7.62-TimerMappingInfo.sql index ebe2c124d2..19eebb09b6 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.61-to-7.62-TimerMappingInfo.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.61-to-7.62-TimerMappingInfo.sql @@ -1,6 +1,6 @@ create table TimerMappingInfo ( - id bigint generated not null auto_increment, + id bigint not null auto_increment, externalTimerId varchar(255), kieSessionId bigint not null, timerId bigint not null, diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.72-to-7.73.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.72-to-7.73.sql index baa3eaf415..4059a81afb 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.72-to-7.73.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/jbpm-7.72-to-7.73.sql @@ -1,3 +1,3 @@ -DROP INDEX IDX_EventTypes_element; -DROP INDEX IDX_EventTypes_compound; +DROP INDEX IDX_EventTypes_element on EventTypes; +DROP INDEX IDX_EventTypes_compound on EventTypes; CREATE INDEX IDX_EventTypes_IdElement ON EventTypes(InstanceId,element); \ No newline at end of file diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.12-to-7.13.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.12-to-7.13.sql index 085874426e..57210446a6 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.12-to-7.13.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.12-to-7.13.sql @@ -2,7 +2,7 @@ ALTER TABLE TaskEvent ADD COLUMN currentOwner varchar(255); alter table NodeInstanceLog add column observation varchar(255); create table TimerMappingInfo ( - id bigint generated not null auto_increment, + id bigint not null auto_increment, externalTimerId varchar(255), kieSessionId bigint not null, timerId bigint not null, diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.13-to-7.13.1.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.13-to-7.13.1.sql index 1915d75d8e..83c233c9b3 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.13-to-7.13.1.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysql5/rhpam-7.13-to-7.13.1.sql @@ -1,5 +1,5 @@ ALTER TABLE TimerMappingInfo ADD COLUMN processInstanceId bigint; ALTER TABLE TimerMappingInfo MODIFY timerId bigint NULL; -DROP INDEX IDX_EventTypes_element; -DROP INDEX IDX_EventTypes_compound; +DROP INDEX IDX_EventTypes_element on EventTypes; +DROP INDEX IDX_EventTypes_compound on EventTypes ; CREATE INDEX IDX_EventTypes_IdElement ON EventTypes(InstanceId,element); \ No newline at end of file diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/jbpm-7.72-to-7.73.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/jbpm-7.72-to-7.73.sql index baa3eaf415..4059a81afb 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/jbpm-7.72-to-7.73.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/jbpm-7.72-to-7.73.sql @@ -1,3 +1,3 @@ -DROP INDEX IDX_EventTypes_element; -DROP INDEX IDX_EventTypes_compound; +DROP INDEX IDX_EventTypes_element on EventTypes; +DROP INDEX IDX_EventTypes_compound on EventTypes; CREATE INDEX IDX_EventTypes_IdElement ON EventTypes(InstanceId,element); \ No newline at end of file diff --git a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/rhpam-7.13-to-7.13.1.sql b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/rhpam-7.13-to-7.13.1.sql index 1915d75d8e..384c47fb67 100644 --- a/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/rhpam-7.13-to-7.13.1.sql +++ b/jbpm-db-scripts/src/main/resources/db/upgrade-scripts/mysqlinnodb/rhpam-7.13-to-7.13.1.sql @@ -1,5 +1,5 @@ ALTER TABLE TimerMappingInfo ADD COLUMN processInstanceId bigint; ALTER TABLE TimerMappingInfo MODIFY timerId bigint NULL; -DROP INDEX IDX_EventTypes_element; -DROP INDEX IDX_EventTypes_compound; +DROP INDEX IDX_EventTypes_element on EventTypes; +DROP INDEX IDX_EventTypes_compound on EventTypes; CREATE INDEX IDX_EventTypes_IdElement ON EventTypes(InstanceId,element); \ No newline at end of file