mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 08:44:04 +00:00
Merge 53f18e80f5 into e1b007946b
This commit is contained in:
commit
8c55bc4139
1 changed files with 4 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ use Illuminate\Console\Command;
|
|||
use Stancl\Tenancy\Concerns\DealsWithMigrations;
|
||||
use Stancl\Tenancy\Concerns\HasATenantsOption;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\NullOutput;
|
||||
|
||||
final class MigrateFresh extends Command
|
||||
{
|
||||
|
|
@ -46,11 +47,12 @@ final class MigrateFresh extends Command
|
|||
]));
|
||||
|
||||
$this->info('Migrating.');
|
||||
$this->callSilent('tenants:migrate', [
|
||||
$output = $this->getOutput()->isVerbose() ? $this->output : new NullOutput;
|
||||
$this->runCommand('tenants:migrate', [
|
||||
'--tenants' => [$tenant->getTenantKey()],
|
||||
'--step' => $this->option('step'),
|
||||
'--force' => true,
|
||||
]);
|
||||
], $output);
|
||||
});
|
||||
|
||||
$this->info('Done.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue