mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
Fix the new bug brought by #974: field attributes cannot be added normally.
This commit is contained in:
@ -155,7 +155,7 @@ public class MysqlSqlBuilder extends DefaultSqlBuilder implements SqlBuilder {
|
|||||||
public String buildGenerateReorderColumnSql(Table oldTable, Table newTable) {
|
public String buildGenerateReorderColumnSql(Table oldTable, Table newTable) {
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
int n = 0;
|
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);
|
TableColumn column = newTable.getColumnList().get(i);
|
||||||
//String columnName = newTable.getColumnList().get(i).getName();
|
//String columnName = newTable.getColumnList().get(i).getName();
|
||||||
// 获取oldTable.getColumnList()中name属性的list
|
// 获取oldTable.getColumnList()中name属性的list
|
||||||
|
Reference in New Issue
Block a user