environment require disable mysql extension

This commit is contained in:
xiaomlove
2025-05-11 21:21:29 +07:00
parent de07fc932c
commit 9a864b817a
11 changed files with 110 additions and 96 deletions
+2 -2
View File
@@ -118,11 +118,11 @@ class NexusUpdate extends Command
return 0;
}
if (!$mysqlInfo['match']) {
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of 5.7 or above.", 'error');
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$mysqlInfo['minVersion']} or above.", 'error');
return 0;
}
if (!$redisInfo['match']) {
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use 2.0.0 or above.", 'error');
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$mysqlInfo['minVersion']} or above.", 'error');
return 0;
}
if ($includeComposer) {
+1 -2
View File
@@ -56,8 +56,7 @@ class Test extends Command
*/
public function handle()
{
$rep = new SeedBoxRepository();
$rep->updateCacheCronjob();
Language::updateTransStatus();
}
}
+1 -1
View File
@@ -68,7 +68,7 @@ class Kernel extends ConsoleKernel
private function registerScheduleCleanup(Schedule $schedule): void
{
if (!Schema::hasTable("settings")) {
if (!file_exists(base_path(".env")) || !Schema::hasTable("settings")) {
return;
}
$interval = get_setting("main.autoclean_interval_one");