Skip to content

Commit c81ef2d

Browse files
committed
Fix invite migration - filter out null capability
1 parent 8afff6d commit c81ef2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

supabase/migrations/20260305120000_invite_links.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ from public.directives d
9191
where (d.spec->>'type') = 'grant'
9292
and d.token is not null
9393
and (d.uses_remaining is null or d.uses_remaining > 0)
94+
and (d.spec->>'capability') is not null
9495
on conflict (token) do nothing;
9596

9697
commit;

0 commit comments

Comments
 (0)