php phinx,phinx.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'],

],

],

];

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值