Add operation log

This commit is contained in:
SwallowGG
2023-10-17 22:28:07 +08:00
parent cfda338978
commit 5a0abba1fc
2 changed files with 8 additions and 6 deletions

View File

@ -95,9 +95,10 @@ public class MysqlSqlBuilder implements SqlBuilder {
script.append("\t").append(mysqlIndexTypeEnum.buildModifyIndex(tableIndex)).append(",\n");
}
}
script = new StringBuilder(script.substring(0, script.length() - 2));
script.append(";");
if(script.length()>2) {
script = new StringBuilder(script.substring(0, script.length() - 2));
script.append(";");
}
return script.toString();
}