Added column_type for MySqlGrammar::compileColumnListing. (#2512)

Co-authored-by: leetaizhu <taizhu.li@winekar.net>
Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
leetaizhu 2020-09-15 14:24:42 +08:00 committed by GitHub
parent 3e0deffa15
commit a05a36d0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# v2.0.12 - TBD
## Added
- [#2512](https://github.com/hyperf/hyperf/pull/2512) Added `column_type` for `MySqlGrammar::compileColumnListing`.
# v2.0.11 - 2020-09-14
## Added

View File

@ -49,7 +49,7 @@ class MySqlGrammar extends Grammar
*/
public function compileColumnListing(): string
{
return 'select `column_key`, `column_name`, `data_type`, `column_comment`, `extra` from information_schema.columns where `table_schema` = ? and `table_name` = ? order by ORDINAL_POSITION';
return 'select `column_key`, `column_name`, `data_type`, `column_comment`, `extra`, `column_type` from information_schema.columns where `table_schema` = ? and `table_name` = ? order by ORDINAL_POSITION';
}
/**