|
|
@ -243,6 +243,9 @@ ORDER BY |
|
|
|
SQL; |
|
|
|
SQL; |
|
|
|
|
|
|
|
|
|
|
|
$columns = $this->db->createCommand($sql)->queryAll(); |
|
|
|
$columns = $this->db->createCommand($sql)->queryAll(); |
|
|
|
|
|
|
|
if (empty($columns)) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
foreach ($columns as $column) { |
|
|
|
foreach ($columns as $column) { |
|
|
|
$column = $this->loadColumnSchema($column); |
|
|
|
$column = $this->loadColumnSchema($column); |
|
|
|
$table->columns[$column->name] = $column; |
|
|
|
$table->columns[$column->name] = $column; |
|
|
|