mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:54:04 +00:00
[2.x] CASCADE when deleting schemas
This commit is contained in:
parent
c239225bc6
commit
3693040892
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class PostgreSQLSchemaManager implements TenantDatabaseManager, CanSetConnection
|
|||
|
||||
public function deleteDatabase(string $name): bool
|
||||
{
|
||||
return $this->database()->statement("DROP SCHEMA \"$name\"");
|
||||
return $this->database()->statement("DROP SCHEMA \"$name\" CASCADE");
|
||||
}
|
||||
|
||||
public function databaseExists(string $name): bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue