forked from karllhughes/colleges
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphinx.php
More file actions
21 lines (20 loc) · 834 Bytes
/
phinx.php
File metadata and controls
21 lines (20 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
return [
'paths' => [
'migrations' => '/var/www/html/migrations',
'seeds' => '/var/www/html/seeds',
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_database' => 'production',
'production' => [
'adapter' => $_ENV['DB_ADAPTER'], // 'pgsql' or 'mysql'
'host' => $_ENV['DB_HOSTNAME'] ?: 'localhost', // Name of the database host
'user' => $_ENV['DB_USERNAME'] ?: '', // Database user
'pass' => $_ENV['DB_PASSWORD'] ?: '', // Database password
'name' => $_ENV['DB_DATABASE'] ?: '', // Database name
'port' => $_ENV['DB_PORT'] ?: '', // Database port
'charset'=> $_ENV['DB_CHARSET'] ?: 'utf8',
],
]
];