mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +00:00
remove "ensuring connection exists" check
This commit is contained in:
parent
7f6166d49a
commit
7c4afc37d0
1 changed files with 1 additions and 4 deletions
|
|
@ -149,10 +149,7 @@ class DatabaseConfig
|
|||
public function purgeHostConnection(): void
|
||||
{
|
||||
$tenantHostConnectionName = $this->getTenantHostConnectionName();
|
||||
|
||||
if (array_key_exists($tenantHostConnectionName, DB::getConnections())) {
|
||||
DB::purge($tenantHostConnectionName);
|
||||
}
|
||||
DB::purge($tenantHostConnectionName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue