Merge pull request #77 from jcreek/fix/migration-issue

fix(*): Fix migration issue
This commit is contained in:
Josh Creek
2026-01-10 13:31:05 +00:00
committed by GitHub
@@ -198,10 +198,10 @@ CREATE POLICY "Users can update own catch records" ON public.catch_records
)
)
WITH CHECK (
auth.uid() = new."userId" AND
auth.uid() = public.catch_records."userId" AND
EXISTS (
SELECT 1 FROM public.pokedexes
WHERE public.pokedexes.id = new."pokedexId"
WHERE public.pokedexes.id = public.catch_records."pokedexId"
AND public.pokedexes."userId" = auth.uid()
)
);