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

Add array_filter for consistency with Laravel

This commit is contained in:
Samuel Štancl 2019-09-30 16:07:01 +02:00 committed by GitHub
parent e00793573f
commit 8fbd2cda4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,10 +41,10 @@ final class MigrateFresh extends Command
tenancy()->initialize($tenant); tenancy()->initialize($tenant);
$this->call('db:wipe', [ $this->call('db:wipe', array_filter([
'--database' => $tenant->getDatabaseConnection(), '--database' => $tenant->getDatabaseConnection(),
'--force' => true, '--force' => true,
]); ]));
$this->call('tenants:migrate', [ $this->call('tenants:migrate', [
'--tenants' => [$tenant->id], '--tenants' => [$tenant->id],