diff --git a/modules/db/dialect/mysql.go b/modules/db/dialect/mysql.go index 2270f7f6a..fa1f5e3a0 100644 --- a/modules/db/dialect/mysql.go +++ b/modules/db/dialect/mysql.go @@ -19,7 +19,8 @@ func (mysql) ShowColumnsWithComment(schema, table string) string { WHERE table_name = '` + table + `' AND - table_schema = '` + schema + `'` + table_schema = '` + schema + `'` + + `ORDER BY ORDINAL_POSITION` } func (mysql) ShowColumns(table string) string {