mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:54:04 +00:00
Remove try/catch
This commit is contained in:
parent
c03ab7937b
commit
387c5ce1ae
1 changed files with 2 additions and 5 deletions
|
|
@ -543,11 +543,8 @@ test('user without BYPASSRLS can only query owned tables if forceRls is true', f
|
|||
// 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;");
|
||||
} catch (\Throwable $th) {
|
||||
}
|
||||
DB::statement("DROP OWNED BY administrator;");
|
||||
DB::statement("DROP USER IF EXISTS administrator;");
|
||||
|
||||
// Create new central user (without superuser and bypassrls privileges)
|
||||
DB::statement("CREATE USER administrator WITH ENCRYPTED PASSWORD 'password'");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue