From ad80ecef1afc1cff0a61cbb31716cfc0a828710f Mon Sep 17 00:00:00 2001 From: Maxim Gorbunkov Date: Wed, 22 May 2024 16:19:19 +0400 Subject: [PATCH 1/2] Fix issue with invalid database upgrade scripts for HSQL --- ...ql.upgradestep.7000.to.7010.task.history.sql | 17 ++++++++--------- ...wable.hsql.upgradestep.7000.to.7010.task.sql | 15 +++++++-------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql index 50d471100cf..0e8d0fbb9ae 100644 --- a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql +++ b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql @@ -1,9 +1,8 @@ -alter table ACT_HI_TASKINST add ( - STATE_ varchar(255), - IN_PROGRESS_TIME_ timestamp, - IN_PROGRESS_STARTED_BY_ varchar(255), - CLAIMED_BY_ varchar(255), - SUSPENDED_TIME_ timestamp, - SUSPENDED_BY_ varchar(255), - COMPLETED_BY_ varchar(255), - IN_PROGRESS_DUE_DATE_ timestamp); \ No newline at end of file +alter table add column ACT_HI_TASKINST STATE_ varchar(255); +alter table add column ACT_HI_TASKINST IN_PROGRESS_TIME_ timestamp; +alter table add column ACT_HI_TASKINST IN_PROGRESS_STARTED_BY_ varchar(255); +alter table add column ACT_HI_TASKINST CLAIMED_BY_ varchar(255); +alter table add column ACT_HI_TASKINST SUSPENDED_TIME_ timestamp; +alter table add column ACT_HI_TASKINST SUSPENDED_BY_ varchar(255); +alter table add column ACT_HI_TASKINST COMPLETED_BY_ varchar(255); +alter table add column ACT_HI_TASKINST IN_PROGRESS_DUE_DATE_ timestamp; \ No newline at end of file diff --git a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.sql b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.sql index b9f0be9f7e1..f5f4439395c 100644 --- a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.sql +++ b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.sql @@ -1,10 +1,9 @@ -alter table ACT_RU_TASK add ( - STATE_ varchar(255), - IN_PROGRESS_TIME_ timestamp, - IN_PROGRESS_STARTED_BY_ varchar(255), - CLAIMED_BY_ varchar(255), - SUSPENDED_TIME_ timestamp, - SUSPENDED_BY_ varchar(255), - IN_PROGRESS_DUE_DATE_ timestamp); +alter table ACT_RU_TASK add column STATE_ varchar(255); +alter table ACT_RU_TASK add column IN_PROGRESS_TIME_ timestamp; +alter table ACT_RU_TASK add column IN_PROGRESS_STARTED_BY_ varchar(255); +alter table ACT_RU_TASK add column CLAIMED_BY_ varchar(255); +alter table ACT_RU_TASK add column SUSPENDED_TIME_ timestamp; +alter table ACT_RU_TASK add column SUSPENDED_BY_ varchar(255); +alter table ACT_RU_TASK add column IN_PROGRESS_DUE_DATE_ timestamp; update ACT_GE_PROPERTY set VALUE_ = '7.0.1.0' where NAME_ = 'task.schema.version'; From 06b6dfefa9298181c9cfbe5f700b9d13aa1ed791 Mon Sep 17 00:00:00 2001 From: Maxim Gorbunkov Date: Wed, 22 May 2024 19:18:21 +0400 Subject: [PATCH 2/2] Fix issue with invalid database upgrade scripts for HSQL --- ...sql.upgradestep.7000.to.7010.task.history.sql | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql index 0e8d0fbb9ae..0cbaa5ba481 100644 --- a/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql +++ b/modules/flowable-task-service/src/main/resources/org/flowable/task/service/db/upgrade/flowable.hsql.upgradestep.7000.to.7010.task.history.sql @@ -1,8 +1,8 @@ -alter table add column ACT_HI_TASKINST STATE_ varchar(255); -alter table add column ACT_HI_TASKINST IN_PROGRESS_TIME_ timestamp; -alter table add column ACT_HI_TASKINST IN_PROGRESS_STARTED_BY_ varchar(255); -alter table add column ACT_HI_TASKINST CLAIMED_BY_ varchar(255); -alter table add column ACT_HI_TASKINST SUSPENDED_TIME_ timestamp; -alter table add column ACT_HI_TASKINST SUSPENDED_BY_ varchar(255); -alter table add column ACT_HI_TASKINST COMPLETED_BY_ varchar(255); -alter table add column ACT_HI_TASKINST IN_PROGRESS_DUE_DATE_ timestamp; \ No newline at end of file +alter table ACT_HI_TASKINST add column STATE_ varchar(255); +alter table ACT_HI_TASKINST add column IN_PROGRESS_TIME_ timestamp; +alter table ACT_HI_TASKINST add column IN_PROGRESS_STARTED_BY_ varchar(255); +alter table ACT_HI_TASKINST add column CLAIMED_BY_ varchar(255); +alter table ACT_HI_TASKINST add column SUSPENDED_TIME_ timestamp; +alter table ACT_HI_TASKINST add column SUSPENDED_BY_ varchar(255); +alter table ACT_HI_TASKINST add column COMPLETED_BY_ varchar(255); +alter table ACT_HI_TASKINST add column IN_PROGRESS_DUE_DATE_ timestamp; \ No newline at end of file