Skip to content

Commit

Permalink
[2.x] CASCADE when deleting schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Jun 1, 2020
1 parent c239225 commit 3693040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TenantDatabaseManagers/PostgreSQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function createDatabase(string $name): bool

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
Expand Down

0 comments on commit 3693040

Please sign in to comment.