mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
Merge pull request #526 from sergon/patch-3
pgsql schema findColumns fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user