mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +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;
|
||||
|
||||
$columns = $this->db->createCommand($sql)->queryAll();
|
||||
if (empty($columns)) {
|
||||
return false;
|
||||
}
|
||||
foreach ($columns as $column) {
|
||||
$column = $this->loadColumnSchema($column);
|
||||
$table->columns[$column->name] = $column;
|
||||
|
||||
Reference in New Issue
Block a user