Skip to content

Commit

Permalink
Fixed regression in #186
Browse files Browse the repository at this point in the history
  • Loading branch information
shirase authored and samdark committed Dec 1, 2016
1 parent b5f5835 commit 1238a0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Yii Framework 2 gii extension Change Log
- Enh #167: Added "generating relations from current schema" option to model generator (zlakomanoff)
- Bug #166: Fixed "Trying to get property of non-object" during model generation (zlakomanoff)
- Bug #179: Fixed indentation and newlines for Pjax widget in crud index view (nkovacs)
- Bug #186: Fixed incorrect database name exception (zlakomanoff)
- Bug #186: Fixed incorrect database name exception (zlakomanoff, shirase)
- Bug #200: Fixed Pjax and Listview with CRUD generator (ariestattoo)
- Chg: Updated version constraint for `yiisoft/yii2` in extension template to `~2.0.0` to ensure compatibility when 2.1 is released (cebe)
- Enh: `yii\gii\Module::defaultVersion()` implemented to pick up 'yiisoft/yii2-gii' extension version (klimov-paul)
Expand Down
2 changes: 1 addition & 1 deletion generators/model/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ protected function getSchemaNames()
if ($db->schema->defaultSchema !== null) {
return [$db->schema->defaultSchema];
}
return [];
return [''];
}

$schema = $db->getSchema();
Expand Down

0 comments on commit 1238a0c

Please sign in to comment.