Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
78ba097c
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
78ba097c
编写于
10月 12, 2017
作者:
J
Joram Barrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix upgrade tests
上级
578c3678
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
54 deletion
+11
-54
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/AbstractEngineConfiguration.java
...g/flowable/engine/common/AbstractEngineConfiguration.java
+1
-1
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
...common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
+0
-41
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
.../common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
+0
-4
modules/flowable-identitylink-service/src/main/resources/org/flowable/identitylink/db/upgrade/flowable.all.upgradestep.6120.to.6200.identitylink.sql
...de/flowable.all.upgradestep.6120.to.6200.identitylink.sql
+1
-0
modules/flowable-job-service/src/main/resources/org/flowable/job/db/upgrade/flowable.all.upgradestep.6120.to.6200.job.sql
.../db/upgrade/flowable.all.upgradestep.6120.to.6200.job.sql
+1
-0
modules/flowable-task-service/src/main/resources/org/flowable/task/db/upgrade/flowable.mssql.upgradestep.6120.to.6200.task.history.sql
.../flowable.mssql.upgradestep.6120.to.6200.task.history.sql
+4
-4
modules/flowable-task-service/src/main/resources/org/flowable/task/db/upgrade/flowable.mssql.upgradestep.6120.to.6200.task.sql
.../upgrade/flowable.mssql.upgradestep.6120.to.6200.task.sql
+4
-4
未找到文件。
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/AbstractEngineConfiguration.java
浏览文件 @
78ba097c
...
...
@@ -414,7 +414,7 @@ public abstract class AbstractEngineConfiguration {
public
void
initSchemaCommandConfig
()
{
if
(
schemaCommandConfig
==
null
)
{
schemaCommandConfig
=
new
CommandConfig
()
.
transactionNotSupported
()
;
schemaCommandConfig
=
new
CommandConfig
();
}
}
...
...
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/AbstractSqlScriptBasedDbSchemaManager.java
浏览文件 @
78ba097c
...
...
@@ -165,47 +165,6 @@ public abstract class AbstractSqlScriptBasedDbSchemaManager implements DbSchemaM
}
}
public
void
setProperty
(
String
propertyName
,
String
value
)
{
String
tableName
=
getPropertyTable
();
if
(!
getDbSqlSession
().
getDbSqlSessionFactory
().
isTablePrefixIsSchema
())
{
tableName
=
prependDatabaseTablePrefix
(
tableName
);
}
PreparedStatement
statement
=
null
;
PreparedStatement
statement2
=
null
;
try
{
statement
=
getDbSqlSession
().
getSqlSession
().
getConnection
()
.
prepareStatement
(
"update "
+
tableName
+
" set VALUE_ = ? where NAME_ = ?"
);
statement
.
setString
(
1
,
value
);
statement
.
setString
(
2
,
propertyName
);
int
result
=
statement
.
executeUpdate
();
// Property does not exist yet, insert the property
if
(
result
==
0
)
{
statement2
=
getDbSqlSession
().
getSqlSession
().
getConnection
()
.
prepareStatement
(
"insert into "
+
tableName
+
"(NAME_, VALUE_, REV_) values(?, ?, ?)"
);
statement2
.
setString
(
1
,
propertyName
);
statement2
.
setString
(
2
,
value
);
statement2
.
setInt
(
3
,
1
);
statement2
.
executeUpdate
();
}
}
catch
(
SQLException
e
)
{
throw
new
FlowableException
(
"Could not set property "
+
propertyName
+
" in "
+
tableName
,
e
);
}
finally
{
if
(
statement
!=
null
)
{
try
{
statement
.
close
();
}
catch
(
SQLException
e
)
{
}
}
if
(
statement2
!=
null
)
{
try
{
statement2
.
close
();
}
catch
(
SQLException
e
)
{
}
}
}
}
protected
String
getPropertyTable
()
{
return
PROPERTY_TABLE
;
}
...
...
modules/flowable-engine-common/src/main/java/org/flowable/engine/common/impl/db/ServiceSqlScriptBasedDbSchemaManager.java
浏览文件 @
78ba097c
...
...
@@ -79,10 +79,6 @@ public abstract class ServiceSqlScriptBasedDbSchemaManager extends AbstractSqlSc
if
(
isHistoryUsed
())
{
dbSchemaUpgrade
(
schemaComponentHistory
,
matchingVersionIndex
);
}
if
(
dbVersion
!=
null
)
{
setProperty
(
schemaVersionProperty
,
FlowableVersions
.
CURRENT_VERSION
);
}
}
feedback
=
"upgraded from "
+
compareWithVersion
+
" to "
+
FlowableVersions
.
CURRENT_VERSION
;
...
...
modules/flowable-identitylink-service/src/main/resources/org/flowable/identitylink/db/upgrade/flowable.all.upgradestep.6120.to.6200.identitylink.sql
0 → 100644
浏览文件 @
78ba097c
insert
into
ACT_GE_PROPERTY
values
(
'identitylink.schema.version'
,
'6.2.0.0'
,
1
);
\ No newline at end of file
modules/flowable-job-service/src/main/resources/org/flowable/job/db/upgrade/flowable.all.upgradestep.6120.to.6200.job.sql
0 → 100644
浏览文件 @
78ba097c
insert
into
ACT_GE_PROPERTY
values
(
'job.schema.version'
,
'6.2.0.0'
,
1
);
\ No newline at end of file
modules/flowable-task-service/src/main/resources/org/flowable/task/db/upgrade/flowable.mssql.upgradestep.6120.to.6200.task.history.sql
浏览文件 @
78ba097c
alter
table
ACT_HI_TASKINST
add
column
SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
column
SUB_SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
column
SCOPE_TYPE_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
column
SCOPE_DEFINITION_ID_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
SUB_SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
SCOPE_TYPE_
nvarchar
(
255
);
alter
table
ACT_HI_TASKINST
add
SCOPE_DEFINITION_ID_
nvarchar
(
255
);
create
index
ACT_IDX_HI_TASK_SCOPE
on
ACT_HI_TASKINST
(
SCOPE_ID_
,
SCOPE_TYPE_
);
create
index
ACT_IDX_HI_TASK_SUB_SCOPE
on
ACT_HI_TASKINST
(
SUB_SCOPE_ID_
,
SCOPE_TYPE_
);
...
...
modules/flowable-task-service/src/main/resources/org/flowable/task/db/upgrade/flowable.mssql.upgradestep.6120.to.6200.task.sql
浏览文件 @
78ba097c
alter
table
ACT_RU_TASK
add
column
SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
column
SUB_SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
column
SCOPE_TYPE_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
column
SCOPE_DEFINITION_ID_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
SUB_SCOPE_ID_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
SCOPE_TYPE_
nvarchar
(
255
);
alter
table
ACT_RU_TASK
add
SCOPE_DEFINITION_ID_
nvarchar
(
255
);
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_
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录