Skip to content

Commit

Permalink
Add step option to migrate-fresh command
Browse files Browse the repository at this point in the history
  • Loading branch information
massiws committed Nov 8, 2023
1 parent 85c7465 commit 0858702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/MigrateFresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct()
parent::__construct();

$this->addOption('--drop-views', null, InputOption::VALUE_NONE, 'Drop views along with tenant tables.', null);
$this->addOption('--step', null, InputOption::VALUE_NONE, 'Force the migrations to be run so they can be rolled back individually.');

$this->setName('tenants:migrate-fresh');
}
Expand All @@ -47,6 +48,7 @@ public function handle()
$this->info('Migrating.');
$this->callSilent('tenants:migrate', [
'--tenants' => [$tenant->getTenantKey()],
'--step' => $this->option('step'),
'--force' => true,
]);
});
Expand Down

0 comments on commit 0858702

Please sign in to comment.