suna/backend/supabase/migrations/20250723055703_nullable_sys...

6 lines
149 B
SQL

ALTER TABLE agents
ALTER COLUMN system_prompt DROP NOT NULL;
UPDATE agents
SET system_prompt = NULL
WHERE metadata->>'is_suna_default' = 'true';