1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 15:04:04 +00:00
This commit is contained in:
lordofthebrain 2025-07-28 22:40:57 +07:00 committed by GitHub
commit 8c55bc4139
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@ use Illuminate\Console\Command;
use Stancl\Tenancy\Concerns\DealsWithMigrations; use Stancl\Tenancy\Concerns\DealsWithMigrations;
use Stancl\Tenancy\Concerns\HasATenantsOption; use Stancl\Tenancy\Concerns\HasATenantsOption;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\NullOutput;
final class MigrateFresh extends Command final class MigrateFresh extends Command
{ {
@ -46,11 +47,12 @@ final class MigrateFresh extends Command
])); ]));
$this->info('Migrating.'); $this->info('Migrating.');
$this->callSilent('tenants:migrate', [ $output = $this->getOutput()->isVerbose() ? $this->output : new NullOutput;
$this->runCommand('tenants:migrate', [
'--tenants' => [$tenant->getTenantKey()], '--tenants' => [$tenant->getTenantKey()],
'--step' => $this->option('step'), '--step' => $this->option('step'),
'--force' => true, '--force' => true,
]); ], $output);
}); });
$this->info('Done.'); $this->info('Done.');