Skip to content

Commit

Permalink
Add operation log
Browse files Browse the repository at this point in the history
  • Loading branch information
Chat2DB-Pro committed Oct 17, 2023
1 parent 53460ff commit 2728259
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public String buildModifyTaleSql(Table oldTable, Table newTable) {

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");
}


Expand Down

0 comments on commit 2728259

Please # to comment.