mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
清理技术债务;优化安装到sqlite的兼容性
This commit is contained in:
@@ -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;
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -17,4 +17,10 @@ return [
|
||||
'商品表增加了自定义字段的属性输入字段,用于系统商品代码演示',
|
||||
],
|
||||
],
|
||||
[
|
||||
'version' => 'v2.0.71',
|
||||
'desc' => [
|
||||
'本次更新修改了database/migrations/20220419030557_system_auth.php文件,修复了安装到sqlite的问题,如果你使用sqlite,需要有意识的解决这个问题',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -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的安装兼容性',
|
||||
'发布新版本',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user