3 Star 4 Fork 1

hunzhiwange/framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
phinx.php 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
小牛New 提交于 2024-01-06 18:07 . 修复单元测试用例
<?php
declare(strict_types=1);
// 读取配置并且返回配置值
require_once __DIR__.'/tests/config.php';
return [
'paths' => [
'migrations' => 'tests/assets/database/migrations',
'seeds' => 'tests/assets/database/seeds',
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => '127.0.0.1',
'name' => 'production_db',
'user' => 'root',
'pass' => '',
'port' => 3306,
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => $GLOBALS['LEEVEL_ENV']['DATABASE']['MYSQL']['HOST'],
'name' => $GLOBALS['LEEVEL_ENV']['DATABASE']['MYSQL']['NAME'],
'user' => $GLOBALS['LEEVEL_ENV']['DATABASE']['MYSQL']['USER'],
'pass' => $GLOBALS['LEEVEL_ENV']['DATABASE']['MYSQL']['PASSWORD'],
'port' => $GLOBALS['LEEVEL_ENV']['DATABASE']['MYSQL']['PORT'],
'charset' => 'utf8',
],
'testing' => [
'adapter' => 'mysql',
'host' => '127.0.0.1',
'name' => 'test',
'user' => 'root',
'pass' => '',
'port' => 3306,
'charset' => 'utf8',
],
],
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/dyhb/framework.git
[email protected]:dyhb/framework.git
dyhb
framework
framework
master

搜索帮助