1 Star 0 Fork 14

Haynes Tang/IYUUPlusDev

forked from 大卫/IYUUPlusDev 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
phinx.php 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/**
* Migration数据库迁移工具 Phinx
* @link https://www.workerman.net/doc/webman/db/migration.html
* @link https://github.com/cakephp/phinx
* @link https://tsy12321.gitbooks.io/phinx-doc/content/
*/
require_once __DIR__ . '/bootstrap.php';
return [
'paths' => [
'migrations' => __DIR__ . '/db/migrations',
'seeds' => __DIR__ . '/db/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => 'localhost',
'name' => 'production_db',
'user' => 'root',
'pass' => 'production_db',
'port' => '3306',
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => getenv('DB_HOST'),
'name' => getenv('DB_DATABASE'),
'user' => getenv('DB_USERNAME'),
'pass' => getenv('DB_PASSWORD'),
'port' => getenv('DB_PORT'),
'charset' => 'utf8mb4',
],
'testing' => [
'adapter' => 'mysql',
'host' => 'localhost',
'name' => 'testing_db',
'user' => 'root',
'pass' => 'testing_db',
'port' => '3306',
'charset' => 'utf8',
]
],
'version_order' => 'creation'
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/LLXD/iyuuplus-dev.git
[email protected]:LLXD/iyuuplus-dev.git
LLXD
iyuuplus-dev
IYUUPlusDev
master

搜索帮助