Revert "Fix the new bug brought by #974: field attributes cannot be added normally."

This reverts commit c994acf88b73259a6bbd44eab0a5ec5f5e7aa608.
This commit is contained in:
Suyue
2024-02-04 12:25:48 +08:00
parent cc49a85c39
commit 7ae40ab34a

View File

@ -155,7 +155,7 @@ public class MysqlSqlBuilder extends DefaultSqlBuilder implements SqlBuilder {
public String buildGenerateReorderColumnSql(Table oldTable, Table newTable) {
StringBuilder sql = new StringBuilder();
int n = 0;
for (int i = 0; i < oldTable.getColumnList().size(); i++) {
for (int i = 0; i < newTable.getColumnList().size(); i++) {
TableColumn column = newTable.getColumnList().get(i);
//String columnName = newTable.getColumnList().get(i).getName();
// 获取oldTable.getColumnList()中name属性的list