-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphinx.php
More file actions
41 lines (37 loc) · 1.11 KB
/
phinx.php
File metadata and controls
41 lines (37 loc) · 1.11 KB
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
37
38
39
40
41
<?php
use Dotenv\Dotenv;
require "app/helpers.php";
if(file_exists(".env")) {
$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();
}
return
[
'paths' => [
'migrations' => 'database/migrations',
'seeds' => 'database/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => env("APP_ENV"),
'production' => [
'adapter' => env("DB_DRIVER", "mysql"),
'host' => env("DB_HOST", "127.0.0.1"),
'name' => env("DB_DATABASE"),
'user' => env("DB_USERNAME"),
'pass' => env("DB_PASSWORD"),
'port' => env("DB_PORT"),
'charset' => env("DB_CHARSET"),
],
'development' => [
'adapter' => env("DB_DRIVER", "mysql"),
'host' => env("DB_HOST", "127.0.0.1"),
'name' => env("DB_DATABASE_DEV"),
'user' => env("DB_USERNAME"),
'pass' => env("DB_PASSWORD"),
'port' => env("DB_PORT"),
'charset' => env("DB_CHARSET"),
]
],
'version_order' => 'creation'
];