feat: select COLUMNS order by ORDINAL_POSITION
This commit is contained in:
parent
da5cea5321
commit
6e08b61cf5
@ -370,7 +370,7 @@ class Util
|
||||
{
|
||||
Util::checkTableName($table);
|
||||
$database = config('database.connections')['plugin.admin.mysql']['database'];
|
||||
$schema_raw = $section !== 'table' ? Util::db()->select("select * from information_schema.COLUMNS where TABLE_SCHEMA = '$database' and table_name = '$table'") : [];
|
||||
$schema_raw = $section !== 'table' ? Util::db()->select("select * from information_schema.COLUMNS where TABLE_SCHEMA = '$database' and table_name = '$table' order by ORDINAL_POSITION") : [];
|
||||
$forms = [];
|
||||
$columns = [];
|
||||
foreach ($schema_raw as $item) {
|
||||
|
Loading…
Reference in New Issue
Block a user