diff --git a/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql b/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql index 28d38570..993bd1f1 100644 --- a/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql +++ b/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql @@ -1,8 +1,6 @@ -alter policy "Enable update for users based on email" -on "public"."help_requests" +alter policy "Enable_update_for_users_based_on_email" +on public.help_requests to public using ( ((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email())) -with check ( - ((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email())) -); \ No newline at end of file +) \ No newline at end of file