mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 13:14:03 +00:00
migrate fresh show output with verbose
This commit is contained in:
parent
60eb7cde09
commit
53f18e80f5
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\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->call('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.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue