Fix: idempotent migration policy creation #99

Merged
will.anderson merged 1 commits from fix/stage-ci-paths into dev 2026-05-11 18:56:38 +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);