1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:34:03 +00:00

Remove redundant store variable

This commit is contained in:
masiorama 2022-02-22 14:33:19 +01:00 committed by GitHub
parent 9f83a65f22
commit d7f7ad3ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,13 +36,11 @@ final class MigrateFresh extends Command
*/ */
public function handle() public function handle()
{ {
$dropViewsFlag = $this->option('drop-views'); tenancy()->runForMultiple($this->option('tenants'), function ($tenant) {
tenancy()->runForMultiple($this->option('tenants'), function ($tenant) use ($dropViewsFlag) {
$this->info('Dropping tables.'); $this->info('Dropping tables.');
$this->call('db:wipe', array_filter([ $this->call('db:wipe', array_filter([
'--database' => 'tenant', '--database' => 'tenant',
'--drop-views' => $dropViewsFlag, '--drop-views' => $this->option('drop-views'),
'--force' => true, '--force' => true,
])); ]));