Add command to execute all of the normal upgrade commands for the application
This commit is contained in:
parent
fa9431c54d
commit
6f3ea462a7
4 changed files with 122 additions and 9 deletions
|
@ -13,12 +13,14 @@ class SeedCommand extends BaseSeedCommand
|
|||
* Block someone from running this seed command if they have not completed
|
||||
* the migration process.
|
||||
*/
|
||||
public function handle(): int
|
||||
public function handle()
|
||||
{
|
||||
if (!$this->hasCompletedMigrations()) {
|
||||
return $this->showMigrationWarning();
|
||||
$this->showMigrationWarning();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
return parent::handle();
|
||||
parent::handle();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,12 +13,14 @@ class UpCommand extends BaseUpCommand
|
|||
* Block someone from running this up command if they have not completed
|
||||
* the migration process.
|
||||
*/
|
||||
public function handle(): int
|
||||
public function handle()
|
||||
{
|
||||
if (!$this->hasCompletedMigrations()) {
|
||||
return $this->showMigrationWarning();
|
||||
$this->showMigrationWarning();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
return parent::handle();
|
||||
parent::handle();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue