mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-13 02:53:45 +00:00
fix(*): Fix migration issue
This commit is contained in:
@@ -198,10 +198,10 @@ CREATE POLICY "Users can update own catch records" ON public.catch_records
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
WITH CHECK (
|
WITH CHECK (
|
||||||
auth.uid() = new."userId" AND
|
auth.uid() = public.catch_records."userId" AND
|
||||||
EXISTS (
|
EXISTS (
|
||||||
SELECT 1 FROM public.pokedexes
|
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()
|
AND public.pokedexes."userId" = auth.uid()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user