This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphinx.sample.php
executable file
·70 lines (67 loc) · 2.25 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Phinx config file.
*
* @license GPLv3
*
* @since 1.0.0
* @package Qubus CMS
* @author Joshua Parker <josh@joshuaparker.blog>
*/
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/mysql" //If using database other than mysql, change mysql to sql
],
"environments" => [
"default_migration_table" => "qub_migrations", //If you change table_prefix, make sure to change it here as well for consistency.
"default_database" => "qubus1",
"qubus1" => [
"adapter" => "mysql",
"host" => DB_HOST,
"name" => DB_NAME,
"user" => DB_USER,
"pass" => DB_PASS,
"table_prefix" => 'qub_',
"charset" => 'utf8mb4',
"collation" => 'utf8mb4_unicode_ci',
"port" => DB_PORT,
'strict' => false,
'mainsite' => [
'url' => '', //i.e. localhost:8888
'path' => '' //i.e. /qubus/
],
//'unix_socket' => "/Applications/MAMP/tmp/mysql/mysql.sock"
],
/*"qubus2" => [
"adapter" => "mysql",
"host" => DB_HOST,
"name" => DB_NAME,
"user" => DB_USER,
"pass" => DB_PASS,
"table_prefix" => 'qub_1_',
"exclude" => [
'permission' => 'permission',
'role' => 'role',
'site' => 'site',
'user' => 'user',
'usermeta' => 'usermeta'
],
"charset" => 'utf8mb4',
"collation" => 'utf8mb4_unicode_ci',
"port" => DB_PORT,
'strict' => false,
//'unix_socket' => "/Applications/MAMP/tmp/mysql/mysql.sock"
]*/
]
];