-
Notifications
You must be signed in to change notification settings - Fork 0
/
phinx.php
29 lines (27 loc) · 841 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
<?php
require __DIR__ . '/src/bootstrap.php';
return [
'paths' => [
'migrations' => __DIR__ . '/src/migrations',
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_database' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => getenv('MYSQL_HOST'),
'name' => getenv('MYSQL_NAME'),
'user' => getenv('MYSQL_USER'),
'pass' => getenv('MYSQL_ROOT_PASSWORD'),
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => getenv('MYSQL_HOST'),
'name' => getenv('MYSQL_NAME'),
'user' => getenv('MYSQL_USER'),
'pass' => getenv('MYSQL_ROOT_PASSWORD'),
'charset' => 'utf8',
],
],
];