改名
This commit is contained in:
@@ -275,7 +275,7 @@ class Columns extends Component
|
|||||||
*/
|
*/
|
||||||
private function structure($table)
|
private function structure($table)
|
||||||
{
|
{
|
||||||
if (isset($this->columns[$table])) {
|
if (!isset($this->columns[$table]) || empty($this->columns[$table])) {
|
||||||
$sql = $this->db->getBuild()->getColumn($table);
|
$sql = $this->db->getBuild()->getColumn($table);
|
||||||
$column = $this->db->createCommand($sql)->all();
|
$column = $this->db->createCommand($sql)->all();
|
||||||
if (empty($column)) {
|
if (empty($column)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user