1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 02:54:03 +00:00

minor fixes

This commit is contained in:
Samuel Štancl 2025-06-03 03:33:03 +02:00
parent f9f9e1814a
commit d98229d8ed

View file

@ -542,7 +542,7 @@ test('table rls manager generates relationship trees with tables related to the
]); ]);
})->with([true, false]); })->with([true, false]);
test('table owner sees all the records when forceRls is false while other users only see records scoped to them', function(bool $forceRls) { test('table owner sees all the records when forceRls is false while other users only see records scoped to them', function (bool $forceRls) {
CreateUserWithRLSPolicies::$forceRls = $forceRls; CreateUserWithRLSPolicies::$forceRls = $forceRls;
// Drop all tables created in beforeEach // Drop all tables created in beforeEach
@ -772,7 +772,7 @@ function createPostgresUser(string $username, string $password = 'password'): ar
{ {
try { try {
DB::statement("DROP OWNED BY {$username};"); DB::statement("DROP OWNED BY {$username};");
} catch (\Throwable $th) {} } catch (\Throwable) {}
DB::statement("DROP USER IF EXISTS {$username};"); DB::statement("DROP USER IF EXISTS {$username};");