You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Compile the query to determine the list of columns. */publicfunctioncompileColumnListing(): string
{
return'select `column_key` as `column_key`, `column_name` as `column_name`, `data_type` as `data_type`, `column_comment` as `column_comment`, `extra` as `extra`, `column_type` as `column_type` from information_schema.columns where `table_schema` = ? and `table_name` = ? order by ORDINAL_POSITION';
}
The text was updated successfully, but these errors were encountered:
<?phpdeclare(strict_types=1);
/** * This file is part of MoChat. * @link https://mo.chat * @document https://mochat.wiki * @contact group@mo.chat * @license https://github.com/mochat-cloud/mochat/blob/master/LICENSE */namespaceApp\Utils;
classMySqlGrammarextends \Hyperf\Database\Schema\Grammars\MySqlGrammar
{
/** * Compile the query to determine the list of columns. */publicfunctioncompileColumnListing(): string
{
return'select `column_key` as `column_key`, `column_name` as `column_name`, `data_type` as `data_type`, `column_comment` as `column_comment`, `extra` as `extra`, `column_type` as `column_type` from information_schema.columns where `table_schema` = ? and `table_name` = ? order by ORDINAL_POSITION';
}
}
修改文件 :vendor/hyperf/database/src/Schema/Grammars/MySqlGrammar.php
找到
compileColumnListing
方法,修改如下:The text was updated successfully, but these errors were encountered: