mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
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:
parent
3b9c4c427e
commit
49eb5014f3
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user