mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:34:05 +00:00
Delete single-call DB transactions
This commit is contained in:
parent
8ccc27e8c3
commit
3ef1c38414
3 changed files with 6 additions and 6 deletions
|
|
@ -114,7 +114,7 @@ test('correct rls policies get created', function () {
|
|||
|
||||
// Drop all existing policies to check if the command creates policies for multiple tables
|
||||
foreach ($getRlsPolicies() as $policy) {
|
||||
DB::transaction(fn () => DB::statement("DROP POLICY IF EXISTS {$policy->policyname} ON {$policy->tablename}"));
|
||||
DB::statement("DROP POLICY IF EXISTS {$policy->policyname} ON {$policy->tablename}");
|
||||
}
|
||||
|
||||
expect($getRlsPolicies())->toHaveCount(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue