-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphoenix.php
36 lines (34 loc) · 1.22 KB
/
phoenix.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
31
32
33
34
35
36
<?php
$dotenv = \Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
return [
'migration_dirs' => [
// 'first' => __DIR__ . '/../first_dir',
// 'second' => __DIR__ . '/../second_dir',
'main' => __DIR__ . DIRECTORY_SEPARATOR . 'migrations',
],
'environments' => [
'local' => [
'adapter' => 'mysql',
'host' => $_ENV['DB_HOST'],
'port' => $_ENV['DB_PORT'], // optional
'username' => $_ENV['DB_USERNAME'],
'password' => $_ENV['DB_PASSWORD'],
'db_name' => $_ENV['DB_NAME'],
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci', // optional, if not set default collation for utf8mb4 is used
],
'production' => [
'adapter' => 'mysql',
'host' => 'production_host',
'port' => 3306, // optional
'username' => 'user',
'password' => 'pass',
'db_name' => 'my_production_db',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci', // optional, if not set default collation for utf8mb4 is used
],
],
'default_environment' => 'local',
'log_table_name' => 'phoenix_log',
];