mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-17 05:00:54 +08:00
Fix #17985: Convert migrationNamespaces to array if needed
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
@@ -24,6 +24,7 @@ Yii Framework 2 Change Log
|
|||||||
- Enh #18120: Include path to the log file into error message if `FileTarget::export` fails (uaoleg)
|
- Enh #18120: Include path to the log file into error message if `FileTarget::export` fails (uaoleg)
|
||||||
- Enh #15202: Add optional param `--silent-exit-on-exception` in `yii\console\Controller` (egorrishe)
|
- Enh #15202: Add optional param `--silent-exit-on-exception` in `yii\console\Controller` (egorrishe)
|
||||||
- Bug #18110: Add quotes to return value of viewName in MSSQL schema. It is `[someView]` now (darkdef)
|
- Bug #18110: Add quotes to return value of viewName in MSSQL schema. It is `[someView]` now (darkdef)
|
||||||
|
- Bug #17985: Convert migrationNamespaces to array if needed (darkdef)
|
||||||
|
|
||||||
|
|
||||||
2.0.35 May 02, 2020
|
2.0.35 May 02, 2020
|
||||||
|
|||||||
@@ -119,6 +119,8 @@ abstract class BaseMigrateController extends Controller
|
|||||||
throw new InvalidConfigException('At least one of `migrationPath` or `migrationNamespaces` should be specified.');
|
throw new InvalidConfigException('At least one of `migrationPath` or `migrationNamespaces` should be specified.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->migrationNamespaces = (array) $this->migrationNamespaces;
|
||||||
|
|
||||||
foreach ($this->migrationNamespaces as $key => $value) {
|
foreach ($this->migrationNamespaces as $key => $value) {
|
||||||
$this->migrationNamespaces[$key] = trim($value, '\\');
|
$this->migrationNamespaces[$key] = trim($value, '\\');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user