清理技术债务;优化安装到sqlite的兼容性

This commit is contained in:
2023-11-25 16:49:04 +08:00
parent ebd774ddf7
commit 51c8490006
4 changed files with 9 additions and 97 deletions

View File

@@ -1,94 +0,0 @@
<?php
$config = [];
$skip_files = [];
$skip_files[] = 'app/common/app/functions.php';
$skip_files[] = 'app/common/app/listen.php';
$skip_files[] = 'app/common/app/middleware.php';
$skip_files[] = 'app/common/app/service.php';
$skip_files[] = 'app/common/app/provider.php';
$skip_files[] = 'composer.lock';
$skip_files[] = '.example.env';
$skip_files[] = 'README.md';
$skip_files[] = 'README.en.md';
$skip_files[] = 'composer.json';
$skip_files[] = 'view/index/welcome.html';
$skip_files[] = 'public/static/common/css/welcome.css';
$skip_files[] = 'app/common/event/AdminLoginSuccess/LogEvent.php';
$skip_files[] = 'app/common/event/AdminLoginType/DemoEvent.php';
$config['skip_files'] = $skip_files;
$skip_dir = [];
$skip_dir[] = 'runtime';
$skip_dir[] = 'vendor';
$skip_dir[] = 'app/admin/controller';
$skip_dir[] = 'app/admin/middleware';
$skip_dir[] = 'app/admin/model';
$skip_dir[] = 'app/admin/service';
$skip_dir[] = 'app/admin/traits';
$skip_dir[] = 'app/admin/view';
$skip_dir[] = 'app/common/controller';
$skip_dir[] = 'app/common/command';
$skip_dir[] = 'app/common/constants';
$skip_dir[] = 'app/common/exception';
$skip_dir[] = 'app/common/model';
$skip_dir[] = 'app/common/provider';
$skip_dir[] = 'app/common/service';
$skip_dir[] = 'app/common/tools';
$skip_dir[] = 'app/common/traits';
$skip_dir[] = 'app/common/tpl';
$config['skip_dir'] = $skip_dir;
// append 如果当前版本不存在,则追加,如果存在,则不应当覆盖
// append 的文件应当在skip内部
$append_files = [];
$append_files[] = 'app/common/app/functions.php';
$append_files[] = 'app/common/app/listen.php';
$append_files[] = 'app/common/app/middleware.php';
$append_files[] = 'app/common/app/service.php';
$append_files[] = 'app/common/app/provider.php';
$append_files[] = '.example.env';
$append_files[] = 'view/index/welcome.html';
$append_files[] = 'public/static/common/css/welcome.css';
$append_files[] = 'app/common/event/AdminLoginSuccess/LogEvent.php';
$append_files[] = 'app/common/event/AdminLoginType/DemoEvent.php';
$config['append_files'] = $append_files;
$append_dir = [];
$append_dir[] = 'app/admin/controller';
$append_dir[] = 'app/admin/middleware';
$append_dir[] = 'app/admin/model';
$append_dir[] = 'app/admin/service';
$append_dir[] = 'app/admin/traits';
$append_dir[] = 'app/admin/view';
$append_dir[] = 'app/common/controller';
$append_dir[] = 'app/common/command';
$append_dir[] = 'app/common/constants';
$append_dir[] = 'app/common/exception';
$append_dir[] = 'app/common/model';
$append_dir[] = 'app/common/provider';
$append_dir[] = 'app/common/service';
$append_dir[] = 'app/common/tools';
$append_dir[] = 'app/common/traits';
$append_dir[] = 'app/common/tpl';
$config['append_dir'] = $append_dir;
return $config;

View File

@@ -37,7 +37,6 @@ class SystemAuth extends Migrator
->addColumn(Column::integer('create_time')->setLimit(11)->setUnsigned()->setDefault(0)->setComment('创建时间'))
->addColumn(Column::integer('update_time')->setLimit(11)->setUnsigned()->setDefault(0))
->addColumn(Column::integer('delete_time')->setLimit(11)->setUnsigned()->setDefault(0))
->addIndex('title')
->addIndex('delete_time')
->create();
}

View File

@@ -17,4 +17,10 @@ return [
'商品表增加了自定义字段的属性输入字段,用于系统商品代码演示',
],
],
[
'version' => 'v2.0.71',
'desc' => [
'本次更新修改了database/migrations/20220419030557_system_auth.php文件修复了安装到sqlite的问题如果你使用sqlite需要有意识的解决这个问题',
],
],
];

View File

@@ -12,12 +12,13 @@ use think\console\Output;
class VersionBase extends Command
{
public const VERSION = 'v2.0.70';
public const VERSION = 'v2.0.71';
public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [
'优化lay-submit特性支持btn上设置name和value',
'清理技术债务update配置文件',
'优化sqlite的安装兼容性',
'发布新版本',
];