提交 4dcc2807 编写于 作者: S Serge Rider

#6864 MySQL: column auto-increment flag edit fixed (update Extra)

上级 84f36725
......@@ -285,6 +285,18 @@ public class MySQLTableColumn extends JDBCTableColumn<MySQLTableBase> implements
return autoGenerated;
}
@Override
public void setAutoGenerated(boolean autoGenerated) {
if (autoGenerated) {
extraInfo = (CommonUtils.notEmpty(extraInfo) + " " + MySQLConstants.EXTRA_AUTO_INCREMENT).trim();
} else {
if (extraInfo != null) {
extraInfo = extraInfo.replace(MySQLConstants.EXTRA_AUTO_INCREMENT, " ").trim();
}
}
super.setAutoGenerated(autoGenerated);
}
@Override
@Property(viewable = true, editable = true, updatable = true, order = 70)
public String getDefaultValue()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册