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.append("\t").append(mysqlIndexTypeEnum.buildModifyIndex(tableIndex)).append(",\n");
} }
} }
if(script.length()>2) {
script = new StringBuilder(script.substring(0, script.length() - 2)); script = new StringBuilder(script.substring(0, script.length() - 2));
script.append(";"); script.append(";");
}
return script.toString(); return script.toString();
} }

View File

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