mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Move DROP TABLE statement
This commit is contained in:
parent
1ea1dff504
commit
c03ab7937b
1 changed files with 3 additions and 3 deletions
|
|
@ -540,12 +540,12 @@ test('table rls manager generates relationship trees with tables related to the
|
|||
test('user without BYPASSRLS can only query owned tables if forceRls is true', function(bool $forceRls) {
|
||||
CreateUserWithRLSPolicies::$forceRls = $forceRls;
|
||||
|
||||
// Drop all tables created in beforeEach
|
||||
DB::statement("DROP TABLE authors, categories, posts, comments, reactions, articles;");
|
||||
|
||||
try {
|
||||
DB::statement("DROP OWNED BY administrator;");
|
||||
DB::statement("DROP USER IF EXISTS administrator;");
|
||||
|
||||
// Drop all tables created in beforeEach
|
||||
DB::statement("DROP TABLE authors, categories, posts, comments, reactions;");
|
||||
} catch (\Throwable $th) {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue