-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphinx.php
executable file
·30 lines (28 loc) · 993 Bytes
/
phinx.php
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
// load our environment files - used to store credentials & configuration
$dotENV = Dotenv\Dotenv::createUnsafeImmutable(__DIR__);
$dotENV->load();
return
[
'paths' => [
'migrations' => 'database/migrations',
],
'templates' => [
'file' => 'database/migrations/template.txt'
],
'environments' =>
[
'default_migration_table' => 'phinxlog',
'production' =>
[
'adapter' => getenv('DB_CNX'),
'host' => getenv('DB_HOST'),
'name' => getenv('DB_NAME'),
'user' => getenv('DB_USER'),
'pass' => getenv('DB_PASS'),
'port' => getenv('DB_PORT'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
],
];