Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
match/app/config/database.php.dist
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

76 lines (72 sloc)
3.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/** | |
* Connection information used by the ORM to connect | |
* to your application's datastores. | |
* Do not use periods in database name - it may lead to error. | |
* See https://github.com/cakephp/cakephp/issues/6471 for details. | |
* Drivers include Mysql Postgres Sqlite Sqlserver | |
* See vendor\cakephp\cakephp\src\Database\Driver for complete list | |
*/ | |
'Datasources' => [ | |
'default' => [ | |
'className' => 'Cake\Database\Connection', | |
// Postgres is currently the only supported backend for COmanage Match | |
'driver' => 'Cake\Database\Driver\Postgres', | |
'persistent' => false, | |
'host' => 'localhost', | |
/** | |
* CakePHP will use the default DB port based on the driver selected | |
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment | |
* the following line and set the port accordingly | |
*/ | |
//'port' => 'non_standard_port_number', | |
'username' => 'XXX', | |
'password' => 'XXX', | |
'database' => 'XXX', | |
'encoding' => 'utf8', | |
'timezone' => 'UTC', | |
'flags' => [], | |
'cacheMetadata' => true, | |
'log' => false, | |
/** | |
* Set identifier quoting to true if you are using reserved words or | |
* special characters in your table or column names. Enabling this | |
* setting will result in queries built using the Query Builder having | |
* identifiers quoted when creating SQL. It should be noted that this | |
* decreases performance because each query needs to be traversed and | |
* manipulated before being executed. | |
*/ | |
'quoteIdentifiers' => false, | |
/** | |
* During development, if using MySQL < 5.6, uncommenting the | |
* following line could boost the speed at which schema metadata is | |
* fetched from the database. It can also be set directly with the | |
* mysql configuration directive 'innodb_stats_on_metadata = 0' | |
* which is the recommended value in production environments | |
*/ | |
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], | |
'url' => env('DATABASE_URL', null), | |
], | |
/** | |
* The test connection is used during the test suite. | |
*/ | |
'test' => [ | |
'className' => 'Cake\Database\Connection', | |
'driver' => 'Cake\Database\Driver\Postgres', | |
'persistent' => false, | |
'host' => 'localhost', | |
//'port' => 'non_standard_port_number', | |
'username' => 'my_app', | |
'password' => 'secret', | |
'database' => 'test_myapp', | |
'encoding' => 'utf8', | |
'timezone' => 'UTC', | |
'cacheMetadata' => true, | |
'quoteIdentifiers' => false, | |
'log' => false, | |
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], | |
'url' => env('DATABASE_TEST_URL', null), | |
], | |
] | |
]; |