Metrics
0
Watch 167 Star 473 Fork 146

GVPjitamin / jitaminPHP

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Jitamin是一款免费、开源,使用PHP语言开发的项目管理系统。QQ群:656868 spread retract

https://github.com/jitamin/jitamin

Clone or download
phinx.php 1.76 KB
Copy Edit Web IDE Raw Blame History
lianguan authored 2018-01-25 17:23 . Fix dotenv
<?php
/*
* This file is part of Jitamin.
*
* Copyright (C) Jitamin Team
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
|--------------------------------------------------------------------------
| Please DO NOT modify me.
|--------------------------------------------------------------------------
*/
// Register The Auto Loader
require __DIR__.'/bootstrap/autoload.php';
$db = require __DIR__.'/config/config.php';
return [
'paths' => [
'migrations' => 'database/migrations',
'seeds' => 'database/seeds',
],
'environments' => [
'default_migration_table' => 'migrations',
'default_database' => $db['db_driver'],
'mysql' => [
'adapter' => 'mysql',
'host' => $db['db_connections']['mysql']['host'],
'name' => $db['db_connections']['mysql']['database'],
'user' => $db['db_connections']['mysql']['username'],
'pass' => $db['db_connections']['mysql']['password'],
'port' => $db['db_connections']['mysql']['port'],
'charset' => 'utf8',
],
'pgsql' => [
'adapter' => 'pgsql',
'host' => $db['db_connections']['pgsql']['host'],
'name' => $db['db_connections']['pgsql']['database'],
'user' => $db['db_connections']['pgsql']['username'],
'pass' => $db['db_connections']['pgsql']['password'],
'port' => $db['db_connections']['pgsql']['port'],
'charset' => 'utf8',
],
'sqlite' => [
'adapter' => 'sqlite',
'name' => $db['db_connections']['sqlite']['database'],
],
],
];

Comment ( 0 )

You need to Sign in for post a comment

Help Search