Fixed bug that the config key of migrations is not correct. (#3118)

* Fixed bug that the config key of migrations is not correct.

* Update CHANGELOG-2.1.md
This commit is contained in:
李铭昕 2021-01-13 10:53:01 +08:00 committed by GitHub
parent 3b9c4c427e
commit 49eb5014f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- [#3106](https://github.com/hyperf/hyperf/pull/3106) Fixed bug that call to a member function getArrayCopy() on null when the parent coroutine context destroyed.
- [#3108](https://github.com/hyperf/hyperf/pull/3108) Fixed routes will be replaced by another group when using `describe:routes` command.
- [#3118](https://github.com/hyperf/hyperf/pull/3118) Fixed bug that the config key of migrations is not correct.
## Added

View File

@ -22,7 +22,7 @@ class DatabaseMigrationRepositoryFactory
{
$reslover = $container->get(ConnectionResolverInterface::class);
$config = $container->get(ConfigInterface::class);
$table = $config->get('databases.migrations', 'migrations');
$table = $config->get('databases.default.migrations', 'migrations');
return make(DatabaseMigrationRepository::class, [
'resolver' => $reslover,
'table' => $table,