mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fix #17771: migrate/fresh was not returning exit code
This commit is contained in:
committed by
GitHub
parent
0ba67fac0c
commit
67ff6f814b
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user