1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 07:04:03 +00:00

Merge remote-tracking branch 'origin/3.x'

This commit is contained in:
Samuel Štancl 2024-02-10 23:34:47 +01:00
commit 7c29764d81
10 changed files with 165 additions and 4 deletions

View file

@ -20,6 +20,7 @@ class MigrateFresh extends BaseCommand
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');
}
@ -40,6 +41,7 @@ class MigrateFresh extends BaseCommand
$this->components->task('Migrating', function () use ($tenant) {
$this->callSilent('tenants:migrate', [
'--tenants' => [$tenant->getTenantKey()],
'--step' => $this->option('step'),
'--force' => true,
]);
});