Browse Source

新增设置唯一键方法 、 修改table信息返回内容

朱金辉 3 weeks ago
parent
commit
738e9c07ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Driver/TraitDatabase.php

+ 1 - 0
src/Driver/TraitDatabase.php

@@ -100,6 +100,7 @@ trait TraitDatabase
             $data['fields'][] = $row['COLUMN_NAME'];
             $data['type'][$row['DATA_TYPE']][] = $row['COLUMN_NAME'];
             $fieldsType = array();
+            $fieldsType['name'] = $row['COLUMN_NAME'];
             $fieldsType['type'] = strtolower($row['DATA_TYPE']);
             $fieldsType['is_pri'] = false;
             $fieldsType['is_uni'] = false;