We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93b8856 commit a6fe385Copy full SHA for a6fe385
docs/en/commands.rst
@@ -394,13 +394,17 @@ using the Manager class :
394
$pdo = new PDO('sqlite::memory:', null, null, [
395
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
396
]);
397
- $configArray = require 'phinx.php';
+ $configPath = __DIR__ . '/../phinx.php';
398
+ $configArray = require $configPath;
399
$configArray['environments']['test'] = [
400
'adapter' => 'sqlite',
401
'connection' => $pdo,
402
'name' => ':memory:',
403
];
- $config = new Config($configArray);
404
+ $config = new Config(
405
+ $configArray,
406
+ $configPath
407
+ );
408
$manager = new Manager($config, new StringInput(' '), new NullOutput());
409
$manager->migrate('test');
410
$manager->seed('test');
0 commit comments