install & update migrate --force

This commit is contained in:
xiaomlove
2021-06-10 01:13:22 +08:00
parent 4b5e223498
commit f3417e9653
2 changed files with 2 additions and 2 deletions

View File

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