Fix #17771: migrate/fresh was not returning exit code

This commit is contained in:
Alexander Makarov
2020-01-09 15:31:54 +03:00
committed by GitHub
parent 0ba67fac0c
commit 67ff6f814b
2 changed files with 6 additions and 3 deletions

View File

@ -464,10 +464,11 @@ abstract class BaseMigrateController extends Controller
if ($this->confirm(
"Are you sure you want to reset the database and start the migration from the beginning?\nAll data will be lost irreversibly!")) {
$this->truncateDatabase();
$this->actionUp();
} else {
$this->stdout('Action was cancelled by user. Nothing has been performed.');
return $this->actionUp();
}
$this->stdout('Action was cancelled by user. Nothing has been performed.');
return ExitCode::OK;
}
/**