Add command to execute all of the normal upgrade commands for the application

This commit is contained in:
Dane Everitt 2021-01-23 15:52:57 -08:00
parent fa9431c54d
commit 6f3ea462a7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 122 additions and 9 deletions

View file

@ -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();
}
}

View file

@ -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();
}
}