Fix: idempotent migration policy creation #100

Merged
will.anderson merged 2 commits from dev into stage 2026-05-11 18:56:56 +00:00
2 changed files with 2 additions and 0 deletions
@@ -15,6 +15,7 @@ CREATE TABLE IF NOT EXISTS public.demo_config (
ALTER TABLE public.demo_config ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS "service only" ON public.demo_config;
CREATE POLICY "service only" ON public.demo_config USING (false);
-- Seed the kill switch as enabled
@@ -15,4 +15,5 @@ CREATE TABLE IF NOT EXISTS public.user_api_keys (
);
ALTER TABLE public.user_api_keys ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS "service only" ON public.user_api_keys;
CREATE POLICY "service only" ON public.user_api_keys USING (false);