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));