fix migration file error

This commit is contained in:
xiaomlove
2021-06-09 17:09:16 +08:00
parent c771ff9ef1
commit 36b8e9a3db
7 changed files with 9 additions and 100 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ if ($currentStep == 3) {
if (!WITH_LARAVEL) {
throw new \RuntimeException('Laravel is not avaliable.');
}
$command = "php " . ROOT_PATH . "artisan install:migrate";
$command = "php " . ROOT_PATH . "artisan migrate";
$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));
@@ -127,7 +127,7 @@ if ($currentStep == 4) {
$install->saveSettings($settings);
// $install->importInitialData();
//use seed
$command = "php " . ROOT_PATH . "artisan install:init_data";
$command = "php " . ROOT_PATH . "artisan db:seed";
$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));