From f3417e96537194d88fca5d3a0c5ca67c2e8cb128 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 10 Jun 2021 01:13:22 +0800 Subject: [PATCH] install & update migrate --force --- nexus/Install/install/install.php | 2 +- nexus/Install/update/update.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nexus/Install/install/install.php b/nexus/Install/install/install.php index 162a3df2..1635f6fb 100644 --- a/nexus/Install/install/install.php +++ b/nexus/Install/install/install.php @@ -64,7 +64,7 @@ if ($currentStep == 3) { if (!WITH_LARAVEL) { throw new \RuntimeException('Laravel is not avaliable.'); } - $command = "php " . ROOT_PATH . "artisan migrate"; + $command = "php " . ROOT_PATH . "artisan migrate --force"; $result = exec($command, $output, $result_code); $install->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result)); $install->doLog("output: " . json_encode($output)); diff --git a/nexus/Install/update/update.php b/nexus/Install/update/update.php index 0f933abf..2ce7dfe6 100644 --- a/nexus/Install/update/update.php +++ b/nexus/Install/update/update.php @@ -91,7 +91,7 @@ if ($currentStep == 3) { while ($isPost) { try { sql_query('SET sql_mode=(SELECT REPLACE(@@sql_mode,"NO_ZERO_DATE", ""))'); - $command = "php " . ROOT_PATH . "artisan migrate"; + $command = "php " . ROOT_PATH . "artisan migrate --force"; $result = exec($command, $output, $result_code); $update->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result)); $update->doLog("output: " . json_encode($output));