-
Notifications
You must be signed in to change notification settings - Fork 12
/
phinx.php
34 lines (32 loc) · 1000 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
31
32
33
34
<?php
require_once 'bootstrap/app.php';
return [
'paths' => [
'migrations' => 'database/migrations',
'seeds' => 'database/seeds'
],
'templates' => [
'file' => 'resources/phinx/Migration.template.php.dist'
],
'migration_base_class' => '\Migration\Migration',
'environments' => [
'default_migration_table' => 'phinxlog',
'default_database' => 'development',
'development' => [
'adapter' => env('DB_CONNECTION'),
'host' => env('DB_HOST'),
'name' => env('DB_DATABASE'),
'user' => env('DB_USERNAME'),
'pass' => env('DB_PASSWORD'),
'port' => env('DB_PORT')
],
'production' => [
'adapter' => env('DB_CONNECTION'),
'host' => env('DB_HOST'),
'name' => env('DB_DATABASE'),
'user' => env('DB_USERNAME'),
'pass' => env('DB_PASSWORD'),
'port' => env('DB_PORT')
]
]
];