Skip to content

Commit

Permalink
fix: 更新默认数据库配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Oct 15, 2024
1 parent 8506e21 commit af7ef9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions plugin/think-library/src/service/bin/package.stub
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class __CLASS__ extends Migrator
/**
* 数据库初始化
* @return void
* @throws \think\db\exception\DbException
*/
public function change()
{
Expand All @@ -33,7 +32,6 @@ class __CLASS__ extends Migrator
/**
* 安装扩展数据
* @return void
* @throws \think\db\exception\DbException
*/
private function inserData()
{
Expand Down
2 changes: 1 addition & 1 deletion plugin/think-plugs-static/stc/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

return [
// 默认使用的数据库连接配置
'default' => env('type.db_type', 'sqlite'),
'default' => env('db.type', 'sqlite'),
// 自定义时间查询规则
'time_query_rule' => [],
// 自动写入时间戳字段
Expand Down

0 comments on commit af7ef9b

Please sign in to comment.