1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 15:34:03 +00:00

Move DROP TABLE statement

This commit is contained in:
lukinovec 2025-01-14 15:10:51 +01:00
parent 1ea1dff504
commit c03ab7937b

View file

@ -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) {
}