mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +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
|
public function purgeHostConnection(): void
|
||||||
{
|
{
|
||||||
$tenantHostConnectionName = $this->getTenantHostConnectionName();
|
$tenantHostConnectionName = $this->getTenantHostConnectionName();
|
||||||
|
DB::purge($tenantHostConnectionName);
|
||||||
if (array_key_exists($tenantHostConnectionName, DB::getConnections())) {
|
|
||||||
DB::purge($tenantHostConnectionName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue