flowable 适配gbase8s

版本 flowable 6.4.2

以下方案仅代表个人观点

修改方案

1 增加gbase支持

org.flowable.common.engine.impl.AbstractEngineConfiguration.java

getDefaultDatabaseTypeMappings()方法

添加

databaseTypeMappings.setProperty("GBase 8s Server","gbase8s");

在org.flowable.common.db.properties包下

添加

gbase8s.properties

内容将此路径下 oracle.properties内容复制即可

2 新增sql文件

org.flowable.db.create

org.flowable.db.drop

org.flowable.common.db.create

org.flowable.common.db.drop

org.flowable.entitylink.service.db.create

org.flowable.entitylink.service.db.drop

org.flowable.eventsubscription.service.db.create

org.flowable.eventsubscription.service.db.drop

org.flowable.identitylink.service.db.create

org.flowable.identitylink.service.db.drop

org.flowable.idm.db.create

org.flowable.idm.db.drop

org.flowable.job.service.db.create

org.flowable.job.service.db.drop

org.flowable.task.service.db.create

org.flowable.task.service.db.drop

org.flowable.variable.service.db.create

org.flowable.variable.service.db.drop

在上述的包下新增sql文件 ,将oracle 的sql文件复制出来,将名字中的oracle 替换成gbase8s

修改sql语句

如下

将sql中的NVARCHAR2 替换成VARCHAR

NUMBER提换成decimal

将NUMBER(*,10) 中的* 替换成28

将TIMESTAMP(6) 替换成 TIMESTAMP(5)

修改ALTER添加外键的语句支持gbase8s

例如

alter table ACT_ID_PRIV_MAPPING add constraint ACT_FK_PRIV_MAPPING foreign key (PRIV_ID_) references ACT_ID_PRIV (ID_);

修改为

alter table ACT_ID_PRIV_MAPPING add constraint foreign key (PRIV_ID_) references ACT_ID_PRIV (ID_);

将语句中的constraint 后边的表名去掉即可

修改ALTER添加唯一约束的语法支持gbase8s

--修改前

alter table ACT_ID_PRIV add constraint ACT_UNIQ_PRIV_NAME unique (NAME_);

--修改后

alter table ACT_ID_PRIV add constraint unique (NAME_) constraint ACT_UNIQ_PRIV_NAME;

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值