mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:04:03 +00:00
minor fixes
This commit is contained in:
parent
f9f9e1814a
commit
d98229d8ed
1 changed files with 3 additions and 3 deletions
|
|
@ -542,7 +542,7 @@ test('table rls manager generates relationship trees with tables related to the
|
|||
]);
|
||||
})->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;
|
||||
|
||||
// Drop all tables created in beforeEach
|
||||
|
|
@ -772,7 +772,7 @@ function createPostgresUser(string $username, string $password = 'password'): ar
|
|||
{
|
||||
try {
|
||||
DB::statement("DROP OWNED BY {$username};");
|
||||
} catch (\Throwable $th) {}
|
||||
} catch (\Throwable) {}
|
||||
|
||||
DB::statement("DROP USER IF EXISTS {$username};");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue