【发布时间】:2016-08-20 11:09:51
【问题描述】:
我收到以下错误:
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0107N The name "FK_11CCTW7HP8CNTIYTKPMYGNBF" is too long. The maximum
length is "18". SQLSTATE=42622
当我跑步时:
db2 'alter table adviserMediaContent add constraint FK_11cctw7hp8cntiytkpmygnbf foreign key (mediaContentId) references mediaContent;'
Sql 是 juplo/hibernate4-maven-plugin 生成的模式的一部分。 知道如何缩短插件中的约束吗?
【问题讨论】:
-
你必须运行一个非常旧的版本;我认为在 DB2 9.5 中取消了对大多数对象名称的 18 字节限制(如果您使用 DB2 for LUW)。
标签: hibernate maven db2 maven-plugin ddl