mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
cleanup check
This commit is contained in:
@@ -309,7 +309,8 @@ class Update extends Install
|
||||
/**
|
||||
* @since 1.8.3
|
||||
*/
|
||||
if (NexusDB::hasTable('settings')) {
|
||||
$hasTableSetting = NexusDB::hasTable('settings');
|
||||
if ($hasTableSetting) {
|
||||
$updateSettings = [];
|
||||
if (get_setting("system.meilisearch_enabled") == 'yes') {
|
||||
$updateSettings["enabled"] = "yes";
|
||||
@@ -322,6 +323,16 @@ class Update extends Install
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.8.10
|
||||
*/
|
||||
if ($hasTableSetting) {
|
||||
Setting::query()->firstOrCreate(
|
||||
["name" => "system.alarm_email_receiver"],
|
||||
["value" => User::query()->where("class", User::CLASS_STAFF_LEADER)->first(["id"])->id]
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function runExtraMigrate()
|
||||
|
||||
Reference in New Issue
Block a user