mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-23 15:37:24 +01:00
[1] Redone missing code.
[2] Added empty line at the end of file [3] Removed exception.
This commit is contained in:
@@ -123,6 +123,8 @@ class Schema extends \yii\db\Schema
|
||||
if ($this->findColumns($table)) {
|
||||
$this->findConstraints($table);
|
||||
return $table;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,11 +242,7 @@ ORDER BY
|
||||
a.attnum;
|
||||
SQL;
|
||||
|
||||
try {
|
||||
$columns = $this->db->createCommand($sql)->queryAll();
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
$columns = $this->db->createCommand($sql)->queryAll();
|
||||
foreach ($columns as $column) {
|
||||
$column = $this->loadColumnSchema($column);
|
||||
$table->columns[$column->name] = $column;
|
||||
@@ -288,4 +286,4 @@ SQL;
|
||||
return $column;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user