{"product":"UmamiEdge","safeOrder":[{"step":1,"id":"compatibility","title":"Run compatibility repair pack","file":"docs/database-compatibility-fixes.sql","purpose":"Repairs older Supabase databases before schema/seed execution.","whenToRun":"First, especially after any error involving missing columns, enum recreation, helper functions, or deployment_runs.version.","risk":"low"},{"step":2,"id":"schema","title":"Apply safe schema","file":"docs/supabase-schema.sql","purpose":"Creates and upgrades tables, indexes, extension assumptions, and compatibility columns.","whenToRun":"After compatibility repair pack. Safe to rerun.","risk":"medium"},{"step":3,"id":"rls","title":"Apply RLS policies","file":"docs/rls-policies.sql","purpose":"Drops/recreates known policies and helper functions with stable parameter names.","whenToRun":"After schema exists. Rerun after changing table names, policy names, or auth logic.","risk":"medium"},{"step":4,"id":"seed","title":"Seed deterministic demo data","file":"docs/seed-demo.sql","purpose":"Creates global demo organization, nodes, telemetry, incidents, contracts, and deployment runs.","whenToRun":"Optional. Use in demo/staging. Review before running in production.","risk":"medium"}],"criticalReminder":"Run docs/database-compatibility-fixes.sql before schema/RLS/seed when upgrading an existing Supabase project or after a failed partial migration.","sqlEditorOrder":["docs/database-compatibility-fixes.sql","docs/supabase-schema.sql","docs/rls-policies.sql","docs/seed-demo.sql"]}