Merge pull request #214 from matchstalk/table/dev

分表基础算法
This commit is contained in:
wenjianzhang
2020-08-26 22:32:11 +08:00
committed by GitHub
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func (e *DBColumns) GetList() ([]DBColumns, error) {
table = orm.Eloquent.Select("*").Table("information_schema.columns")
table = table.Where("table_schema= ? ", config2.GenConfig.DBName)
table = table.Where("TABLE_NAME = ?", e.TableName)
table = table.Where("TABLE_NAME = ?", e.TableName).Order("ORDINAL_POSITION asc")
} else {
tools.Assert(true, "目前只支持mysql数据库", 500)
}