-
Notifications
You must be signed in to change notification settings - Fork 7
/
phinx.sample.php
43 lines (40 loc) · 1.17 KB
/
phinx.sample.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
37
38
39
40
41
42
43
<?php
/**
* Phinx config file.
*
* @license GPLv3
*
* @since 2.0.0
* @package tinyCampaign
* @author Joshua Parker <joshmac3@icloud.com>
*/
date_default_timezone_set('UTC');
/**
* If you are installing on a development server such
* as WAMP, MAMP, XAMPP or AMPPS, you might need to
* set DB_HOST to 127.0.0.1 instead of localhost.
*/
defined('DB_HOST') or define('DB_HOST', ''); // MySQL server host.
defined('DB_NAME') or define('DB_NAME', ''); // Database name.
defined('DB_USER') or define('DB_USER', ''); // Database username.
defined('DB_PASS') or define('DB_PASS', ''); // Database password.
defined('DB_PORT') or define('DB_PORT', 3306); // Database port.
return [
"paths" => [
"migrations" => "app/migrations"
],
"environments" => [
"default_migration_table" => "migrations",
"default_database" => "production",
"production" => [
"adapter" => "mysql",
"host" => DB_HOST,
"name" => DB_NAME,
"user" => DB_USER,
"pass" => DB_PASS,
"charset" => 'utf8mb4',
"collation" => 'utf8mb4_unicode_ci',
"port" => DB_PORT
]
]
];