run migrate --force

This commit is contained in:
xiaomlove
2022-02-15 02:55:41 +08:00
parent b62438e8ea
commit 283f020b0b
+1 -2
View File
@@ -547,9 +547,8 @@ class Install
$command = "php " . ROOT_PATH . "artisan migrate"; $command = "php " . ROOT_PATH . "artisan migrate";
if (!is_null($path)) { if (!is_null($path)) {
$command .= " --path=$path"; $command .= " --path=$path";
} else {
$command .= " --force";
} }
$command .= " --force";
$this->executeCommand($command); $this->executeCommand($command);
$this->doLog("[MIGRATE] success."); $this->doLog("[MIGRATE] success.");
} }