We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0e5a5 commit 6553d8cCopy full SHA for 6553d8c
src/com/yanglb/utilitys/codegen/core/translator/impl/DdlMysqlTranslatorImpl.java
@@ -161,6 +161,11 @@ private String genDdlDetail(DdlDetail detail) {
161
sb.append(" NOT NULL");
162
}
163
164
+ // 自增长列
165
+ if(detail.getColAutoIncrement() != null) {
166
+ sb.append(" AUTO_INCREMENT");
167
+ }
168
+
169
// TODO: 默认值还有问题
170
if(!StringUtility.isNullOrEmpty(detail.getColDefault())) {
171
sb.append(String.format(" DEFAULT '%s'", detail.getColDefault()));
0 commit comments