mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
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:
parent
3e0deffa15
commit
a05a36d0f9
@ -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
|
||||
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user