Skip to content

Commit

Permalink
Move db version and sql scripts to 7.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Sep 21, 2023
1 parent 195a84b commit ce735ae
Show file tree
Hide file tree
Showing 111 changed files with 281 additions and 155 deletions.
24 changes: 13 additions & 11 deletions distro/sql/create/all/flowable.db2.all.create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ create table ACT_GE_BYTEARRAY (
);

insert into ACT_GE_PROPERTY
values ('common.schema.version', '6.8.0.0', 1);
values ('common.schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);
Expand Down Expand Up @@ -46,7 +46,7 @@ create index ACT_IDX_ENT_LNK_REF_SCOPE on ACT_RU_ENTITYLINK(REF_SCOPE_ID_, REF_S
create index ACT_IDX_ENT_LNK_ROOT_SCOPE on ACT_RU_ENTITYLINK(ROOT_SCOPE_ID_, ROOT_SCOPE_TYPE_, LINK_TYPE_);
create index ACT_IDX_ENT_LNK_SCOPE_DEF on ACT_RU_ENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_, LINK_TYPE_);

insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_ENTITYLINK (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -94,7 +94,7 @@ create index ACT_IDX_IDENT_LNK_SCOPE on ACT_RU_IDENTITYLINK(SCOPE_ID_, SCOPE_TYP
create index ACT_IDX_IDENT_LNK_SUB_SCOPE on ACT_RU_IDENTITYLINK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_IDENT_LNK_SCOPE_DEF on ACT_RU_IDENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_IDENTITYLINK (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -376,7 +376,7 @@ create index ACT_IDX_EJOB_SCOPE on ACT_RU_EXTERNAL_JOB(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SUB_SCOPE on ACT_RU_EXTERNAL_JOB(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SCOPE_DEF on ACT_RU_EXTERNAL_JOB(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('job.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('job.schema.version', '7.0.0.0', 1);


create table FLW_RU_BATCH (
Expand Down Expand Up @@ -418,7 +418,7 @@ alter table FLW_RU_BATCH_PART
foreign key (BATCH_ID_)
references FLW_RU_BATCH (ID_);

insert into ACT_GE_PROPERTY values ('batch.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('batch.schema.version', '7.0.0.0', 1);


create table ACT_RU_TASK (
Expand Down Expand Up @@ -460,7 +460,7 @@ create index ACT_IDX_TASK_SCOPE on ACT_RU_TASK(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SUB_SCOPE on ACT_RU_TASK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SCOPE_DEF on ACT_RU_TASK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('task.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('task.schema.version', '7.0.0.0', 1);

create table ACT_HI_TASKINST (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -533,6 +533,7 @@ create table ACT_RU_VARIABLE (
LONG_ bigint,
TEXT_ varchar(4000),
TEXT2_ varchar(4000),
META_INFO_ varchar(4000),
primary key (ID_)
);

Expand All @@ -545,7 +546,7 @@ alter table ACT_RU_VARIABLE
foreign key (BYTEARRAY_ID_)
references ACT_GE_BYTEARRAY (ID_);

insert into ACT_GE_PROPERTY values ('variable.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('variable.schema.version', '7.0.0.0', 1);

create table ACT_HI_VARINST (
ID_ varchar(64) not null,
Expand All @@ -565,6 +566,7 @@ create table ACT_HI_VARINST (
TEXT2_ varchar(4000),
CREATE_TIME_ timestamp,
LAST_UPDATED_TIME_ timestamp,
META_INFO_ varchar(4000),
primary key (ID_)
);

Expand Down Expand Up @@ -598,7 +600,7 @@ create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_)
create index ACT_IDX_EVENT_SUBSCR_EXEC_ID on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
create index ACT_IDX_EVENT_SUBSCR_SCOPEREF_ on ACT_RU_EVENT_SUBSCR(SCOPE_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '7.0.0.0', 1);
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64) not null,
NAME_ varchar(255),
Expand Down Expand Up @@ -943,10 +945,10 @@ alter table ACT_PROCDEF_INFO
unique (PROC_DEF_ID_);

insert into ACT_GE_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('schema.history', 'create(6.8.0.0)', 1);
values ('schema.history', 'create(7.0.0.0)', 1);

create table ACT_HI_PROCINST (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -1070,7 +1072,7 @@ create table ACT_ID_PROPERTY (
);

insert into ACT_ID_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

create table ACT_ID_BYTEARRAY (
ID_ varchar(64) not null,
Expand Down
24 changes: 13 additions & 11 deletions distro/sql/create/all/flowable.mssql.all.create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ create table ACT_GE_BYTEARRAY (
);

insert into ACT_GE_PROPERTY
values ('common.schema.version', '6.8.0.0', 1);
values ('common.schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);
Expand Down Expand Up @@ -46,7 +46,7 @@ create index ACT_IDX_ENT_LNK_REF_SCOPE on ACT_RU_ENTITYLINK(REF_SCOPE_ID_, REF_S
create index ACT_IDX_ENT_LNK_ROOT_SCOPE on ACT_RU_ENTITYLINK(ROOT_SCOPE_ID_, ROOT_SCOPE_TYPE_, LINK_TYPE_);
create index ACT_IDX_ENT_LNK_SCOPE_DEF on ACT_RU_ENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_, LINK_TYPE_);

insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_ENTITYLINK (
ID_ nvarchar(64),
Expand Down Expand Up @@ -94,7 +94,7 @@ create index ACT_IDX_IDENT_LNK_SCOPE on ACT_RU_IDENTITYLINK(SCOPE_ID_, SCOPE_TYP
create index ACT_IDX_IDENT_LNK_SUB_SCOPE on ACT_RU_IDENTITYLINK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_IDENT_LNK_SCOPE_DEF on ACT_RU_IDENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_IDENTITYLINK (
ID_ nvarchar(64),
Expand Down Expand Up @@ -376,7 +376,7 @@ create index ACT_IDX_EJOB_SCOPE on ACT_RU_EXTERNAL_JOB(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SUB_SCOPE on ACT_RU_EXTERNAL_JOB(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SCOPE_DEF on ACT_RU_EXTERNAL_JOB(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('job.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('job.schema.version', '7.0.0.0', 1);

create table FLW_RU_BATCH (
ID_ nvarchar(64) not null,
Expand Down Expand Up @@ -417,7 +417,7 @@ alter table FLW_RU_BATCH_PART
foreign key (BATCH_ID_)
references FLW_RU_BATCH (ID_);

insert into ACT_GE_PROPERTY values ('batch.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('batch.schema.version', '7.0.0.0', 1);


create table ACT_RU_TASK (
Expand Down Expand Up @@ -459,7 +459,7 @@ create index ACT_IDX_TASK_SCOPE on ACT_RU_TASK(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SUB_SCOPE on ACT_RU_TASK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SCOPE_DEF on ACT_RU_TASK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('task.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('task.schema.version', '7.0.0.0', 1);

create table ACT_HI_TASKINST (
ID_ nvarchar(64) not null,
Expand Down Expand Up @@ -531,6 +531,7 @@ create table ACT_RU_VARIABLE (
LONG_ numeric(19,0),
TEXT_ nvarchar(4000),
TEXT2_ nvarchar(4000),
META_INFO_ nvarchar(4000),
primary key (ID_)
);

Expand All @@ -543,7 +544,7 @@ alter table ACT_RU_VARIABLE
foreign key (BYTEARRAY_ID_)
references ACT_GE_BYTEARRAY (ID_);

insert into ACT_GE_PROPERTY values ('variable.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('variable.schema.version', '7.0.0.0', 1);

create table ACT_HI_VARINST (
ID_ nvarchar(64) not null,
Expand All @@ -563,6 +564,7 @@ create table ACT_HI_VARINST (
TEXT2_ nvarchar(4000),
CREATE_TIME_ datetime,
LAST_UPDATED_TIME_ datetime2,
META_INFO_ nvarchar(4000),
primary key (ID_)
);

Expand Down Expand Up @@ -596,7 +598,7 @@ create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_)
create index ACT_IDX_EVENT_SUBSCR_EXEC_ID on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
create index ACT_IDX_EVENT_SUBSCR_SCOPEREF_ on ACT_RU_EVENT_SUBSCR(SCOPE_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '7.0.0.0', 1);
create table ACT_RE_DEPLOYMENT (
ID_ nvarchar(64),
NAME_ nvarchar(255),
Expand Down Expand Up @@ -936,10 +938,10 @@ alter table ACT_PROCDEF_INFO
unique (PROC_DEF_ID_);

insert into ACT_GE_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('schema.history', 'create(6.8.0.0)', 1);
values ('schema.history', 'create(7.0.0.0)', 1);

create table ACT_HI_PROCINST (
ID_ nvarchar(64) not null,
Expand Down Expand Up @@ -1062,7 +1064,7 @@ create table ACT_ID_PROPERTY (
);

insert into ACT_ID_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

create table ACT_ID_BYTEARRAY (
ID_ nvarchar(64),
Expand Down
24 changes: 13 additions & 11 deletions distro/sql/create/all/flowable.mysql.all.create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ create table ACT_GE_BYTEARRAY (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;

insert into ACT_GE_PROPERTY
values ('common.schema.version', '6.8.0.0', 1);
values ('common.schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);
Expand Down Expand Up @@ -46,7 +46,7 @@ create index ACT_IDX_ENT_LNK_REF_SCOPE on ACT_RU_ENTITYLINK(REF_SCOPE_ID_, REF_S
create index ACT_IDX_ENT_LNK_ROOT_SCOPE on ACT_RU_ENTITYLINK(ROOT_SCOPE_ID_, ROOT_SCOPE_TYPE_, LINK_TYPE_);
create index ACT_IDX_ENT_LNK_SCOPE_DEF on ACT_RU_ENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_, LINK_TYPE_);

insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('entitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_ENTITYLINK (
ID_ varchar(64),
Expand Down Expand Up @@ -94,7 +94,7 @@ create index ACT_IDX_IDENT_LNK_SCOPE on ACT_RU_IDENTITYLINK(SCOPE_ID_, SCOPE_TYP
create index ACT_IDX_IDENT_LNK_SUB_SCOPE on ACT_RU_IDENTITYLINK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_IDENT_LNK_SCOPE_DEF on ACT_RU_IDENTITYLINK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('identitylink.schema.version', '7.0.0.0', 1);

create table ACT_HI_IDENTITYLINK (
ID_ varchar(64),
Expand Down Expand Up @@ -376,7 +376,7 @@ create index ACT_IDX_EJOB_SCOPE on ACT_RU_EXTERNAL_JOB(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SUB_SCOPE on ACT_RU_EXTERNAL_JOB(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_EJOB_SCOPE_DEF on ACT_RU_EXTERNAL_JOB(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('job.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('job.schema.version', '7.0.0.0', 1);

create table FLW_RU_BATCH (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -417,7 +417,7 @@ alter table FLW_RU_BATCH_PART
foreign key (BATCH_ID_)
references FLW_RU_BATCH (ID_);

insert into ACT_GE_PROPERTY values ('batch.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('batch.schema.version', '7.0.0.0', 1);


create table ACT_RU_TASK (
Expand Down Expand Up @@ -459,7 +459,7 @@ create index ACT_IDX_TASK_SCOPE on ACT_RU_TASK(SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SUB_SCOPE on ACT_RU_TASK(SUB_SCOPE_ID_, SCOPE_TYPE_);
create index ACT_IDX_TASK_SCOPE_DEF on ACT_RU_TASK(SCOPE_DEFINITION_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('task.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('task.schema.version', '7.0.0.0', 1);

create table ACT_HI_TASKINST (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -532,6 +532,7 @@ create table ACT_RU_VARIABLE (
LONG_ bigint,
TEXT_ varchar(4000),
TEXT2_ varchar(4000),
META_INFO_ varchar(4000),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;

Expand All @@ -543,7 +544,7 @@ alter table ACT_RU_VARIABLE
foreign key (BYTEARRAY_ID_)
references ACT_GE_BYTEARRAY (ID_);

insert into ACT_GE_PROPERTY values ('variable.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('variable.schema.version', '7.0.0.0', 1);

create table ACT_HI_VARINST (
ID_ varchar(64) not null,
Expand All @@ -563,6 +564,7 @@ create table ACT_HI_VARINST (
TEXT2_ varchar(4000),
CREATE_TIME_ datetime(3),
LAST_UPDATED_TIME_ datetime(3),
META_INFO_ varchar(4000),
primary key (ID_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;

Expand Down Expand Up @@ -595,7 +597,7 @@ create table ACT_RU_EVENT_SUBSCR (
create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
create index ACT_IDX_EVENT_SUBSCR_SCOPEREF_ on ACT_RU_EVENT_SUBSCR(SCOPE_ID_, SCOPE_TYPE_);

insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '6.8.0.0', 1);
insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '7.0.0.0', 1);
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64),
NAME_ varchar(255),
Expand Down Expand Up @@ -916,10 +918,10 @@ alter table ACT_PROCDEF_INFO
unique (PROC_DEF_ID_);

insert into ACT_GE_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

insert into ACT_GE_PROPERTY
values ('schema.history', 'create(6.8.0.0)', 1);
values ('schema.history', 'create(7.0.0.0)', 1);

create table ACT_HI_PROCINST (
ID_ varchar(64) not null,
Expand Down Expand Up @@ -1042,7 +1044,7 @@ create table ACT_ID_PROPERTY (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;

insert into ACT_ID_PROPERTY
values ('schema.version', '6.8.0.0', 1);
values ('schema.version', '7.0.0.0', 1);

create table ACT_ID_BYTEARRAY (
ID_ varchar(64),
Expand Down
Loading

0 comments on commit ce735ae

Please sign in to comment.