model生成新表异常,字段没有DEFAULT NULL 了,以前是好的,是不是最近两天官网改过这个生成逻辑?
@Table("mv_conflict")
public class Mv_conflict extends Model implements Serializable {
private static final long serialVersionUID = 1L;
@Column
@Id
@Comment("ID")
private int id;
@Column
@Comment("冲突关键词")
@ColDefine(type = ColType.VARCHAR, width = 50)
private String key;
@Column
@Comment("状态:1:未处理,2:已处理")
private int status;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
}
sql
2016-09-12 14:45:51,449 com.alibaba.druid.filter.stat.StatFilter.mergeSql(StatFilter.java:147) ERROR - merge sql error, dbType mysql, sql :
CREATE TABLE mv_conflict(
id INT(32) AUTO_INCREMENT COMMENT 'ID',
key VARCHAR(50) COMMENT '冲突关键词',
status INT(32) COMMENT '状态:1:未处理,2:已处理',
opBy VARCHAR(32) COMMENT '操作人',
opAt INT(20) COMMENT '操作时间',
delFlag BOOLEAN COMMENT '删除标记',
PRIMARY KEY (id)
) ENGINE=InnoDB CHARSET=utf8
com.alibaba.druid.sql.parser.ParserException: syntax error, error in :'(50) COMMENT '冲突关键词',
status INT(32',expect RPAREN, actual COMMENT COMMENT