mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-03-13 00:08:14 -04:00
to: 增加迁移迁移配置文件前清除缓存
This commit is contained in:
parent
ed3e40790e
commit
933572648c
@ -158,6 +158,7 @@ class MigrateFromV2b extends Command
|
||||
|
||||
public function MigrateV2ConfigToV2Settings()
|
||||
{
|
||||
\Artisan::call('config:clear');
|
||||
$configValue = config('v2board') ?? [];
|
||||
|
||||
foreach ($configValue as $k => $v) {
|
||||
@ -175,7 +176,6 @@ class MigrateFromV2b extends Command
|
||||
]);
|
||||
$this->info("配置 ${k} 迁移成功");
|
||||
}
|
||||
\Artisan::call('config:clear');
|
||||
\Artisan::call('config:cache');
|
||||
|
||||
$this->info('所有配置迁移完成');
|
||||
|
Loading…
Reference in New Issue
Block a user