php-censor/app/phinx.php

37 lines
977 B
PHP
Raw Normal View History

<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
2016-04-21 19:05:32 +02:00
require_once(dirname(__DIR__) . '/bootstrap.php');
$writeServers = $config->get('b8.database.servers.write');
if (!is_array($writeServers)) {
2016-04-20 12:30:26 +02:00
$writeServers = [$writeServers];
}
2016-04-20 12:30:26 +02:00
$conf = [
'paths' => [
2016-07-19 20:28:11 +02:00
'migrations' => 'src/PHPCensor/Migrations',
2016-04-20 12:30:26 +02:00
],
'environments' => [
'default_migration_table' => 'migration',
2016-07-21 19:02:11 +02:00
'default_database' => 'php-censor',
'php-censor' => [
'adapter' => 'mysql',
2016-04-20 12:30:26 +02:00
'host' => end($writeServers),
'name' => $config->get('b8.database.name'),
'user' => $config->get('b8.database.username'),
'pass' => $config->get('b8.database.password'),
],
],
];
2014-05-13 17:44:57 +02:00
return $conf;