Skip to content

Commit 0b248f9

Browse files
authored
Add step option to migrate-fresh command (#1164)
1 parent 85c7465 commit 0b248f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Commands/MigrateFresh.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct()
2525
parent::__construct();
2626

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

2930
$this->setName('tenants:migrate-fresh');
3031
}
@@ -47,6 +48,7 @@ public function handle()
4748
$this->info('Migrating.');
4849
$this->callSilent('tenants:migrate', [
4950
'--tenants' => [$tenant->getTenantKey()],
51+
'--step' => $this->option('step'),
5052
'--force' => true,
5153
]);
5254
});

0 commit comments

Comments
 (0)