-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphinx.php
More file actions
30 lines (26 loc) · 803 Bytes
/
phinx.php
File metadata and controls
30 lines (26 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once(__DIR__ . "/vendor/autoload.php");
$environment = array_merge($_SERVER, $_ENV);
$phinxConf =
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/test/Migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/test/Seeds'
],
'environments' => [
'default_environment' => 'testing',
'default_migration_table' => 'Migrations',
'testing' => [
'adapter' => 'mysql',
'host' => $environment['MYSQL_HOST'],
'name' => $environment['MYSQL_DATABASE'],
'user' => $environment['MYSQL_USER'],
'pass' => $environment['MYSQL_PASSWORD'],
'port' => '3306',
'charset' => 'utf8',
]
],
'version_order' => 'creation'
];
\Kint::dump($phinxConf);
return $phinxConf;