mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:14:04 +00:00
Check that the tenant database can be created only if it should be created
This commit is contained in:
parent
cf339a5e82
commit
df99e3e711
1 changed files with 4 additions and 1 deletions
|
|
@ -145,8 +145,11 @@ class TenantManager
|
|||
*/
|
||||
public function ensureTenantCanBeCreated(Tenant $tenant): void
|
||||
{
|
||||
if ($this->shouldCreateDatabase($tenant)) {
|
||||
$this->database->ensureTenantCanBeCreated($tenant);
|
||||
}
|
||||
|
||||
$this->storage->ensureTenantCanBeCreated($tenant);
|
||||
$this->database->ensureTenantCanBeCreated($tenant);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue