-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphinx.php
More file actions
23 lines (22 loc) · 758 Bytes
/
phinx.php
File metadata and controls
23 lines (22 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$config = @include config_path()."/.env.php";
return [
'paths' => [
"migrations" => "database/migrations",
"seeds" => "database/seeds",
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'default',
'default' => [
'adapter' => 'mysql',
'host' => $config['DB_HOST'] ?? '127.0.0.1',
'name' => $config['DB_DATABASE'] ?? 'test',
'user' => $config['DB_USERNAME'] ?? 'root',
'pass' => $config['DB_PASSWORD'] ?? 'root',
'port' => $config['DB_PORT'] ?? '3306',
'charset' => 'utf8mb4',
]
],
'version_order' => 'creation',
];