Skip to content

Commit

Permalink
Put DROP OWNED BY into try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Jan 14, 2025
1 parent 387c5ce commit f836610
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/RLS/TableManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,10 @@
// Drop all tables created in beforeEach
DB::statement("DROP TABLE authors, categories, posts, comments, reactions, articles;");

DB::statement("DROP OWNED BY administrator;");
try {
DB::statement("DROP OWNED BY administrator;");
} catch (\Throwable $th) {}

DB::statement("DROP USER IF EXISTS administrator;");

// Create new central user (without superuser and bypassrls privileges)
Expand Down

0 comments on commit f836610

Please sign in to comment.