1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 11:14: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()
{
$dropViewsFlag = $this->option('drop-views');
tenancy()->runForMultiple($this->option('tenants'), function ($tenant) use ($dropViewsFlag) {
tenancy()->runForMultiple($this->option('tenants'), function ($tenant) {
$this->info('Dropping tables.');
$this->call('db:wipe', array_filter([
'--database' => 'tenant',
'--drop-views' => $dropViewsFlag,
'--drop-views' => $this->option('drop-views'),
'--force' => true,
]));