Add operation log

This commit is contained in:
SwallowGG
2023-10-17 22:54:35 +08:00
parent 53460ff620
commit 2728259491

View File

@ -67,10 +67,10 @@ public class OracleSqlBuilder implements SqlBuilder {
if (!StringUtils.equalsIgnoreCase(oldTable.getName(), newTable.getName())) {
script.append("ALTER TABLE "). append("\"").append(oldTable.getSchemaName()).append("\".\"").append(oldTable.getName()).append("\"");
script.append(" ").append("RENAME TO ").append("\"").append(newTable.getName()).append("\"").append(";");
script.append(" ").append("RENAME TO ").append("\"").append(newTable.getName()).append("\"").append(";\n");
}
if (!StringUtils.equalsIgnoreCase(oldTable.getComment(), newTable.getComment())) {
script.append("\n").append(buildTableComment(newTable)).append(";");
script.append("").append(buildTableComment(newTable)).append(";\n");
}