mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
fix: 安装系统部分情况没有数据
This commit is contained in:
parent
f6afdd6604
commit
b81f2f0675
@ -15,9 +15,13 @@ class SettingsTableSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
if (\DB::table('settings')->where('name', 'system')->count() > 0) {
|
||||
return;
|
||||
$system = \DB::table('settings')->where('name', 'system')->first();
|
||||
if ($system) {
|
||||
$system = json_decode($system->setting, true);
|
||||
if (isset($system['reg'])) {
|
||||
return;
|
||||
}
|
||||
\DB::table('settings')->delete();
|
||||
}
|
||||
|
||||
\DB::table('settings')->insert(array (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user