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

This commit is contained in:
Suyue
2024-02-03 10:11:58 +08:00
parent 5802aefdaf
commit c994acf88b

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 < newTable.getColumnList().size(); i++) {
for (int i = 0; i < oldTable.getColumnList().size(); i++) {
TableColumn column = newTable.getColumnList().get(i);
//String columnName = newTable.getColumnList().get(i).getName();
// 获取oldTable.getColumnList()中name属性的list