- Add projects table with current_phase and health_score - Add project_phases for tracking phase status per iteration - Add backlog_items with WSJF prioritization (computed priority_score) - Add ai_recommendations for AI-powered insights - Add project_health_snapshots for historical tracking - Add project_activities for activity feed - Include RLS policies and helper functions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
Applying the Design Thinking Schema Migration
Option 1: Supabase Studio (Recommended)
- Go to https://supabase.mylder.io
- Login with dashboard credentials:
- User:
5f7DODtzYzoXKusR - Password:
VHmrbh9a6QVcXE2b2hMblhPoRsqsd2Gj
- User:
- Navigate to SQL Editor
- Copy contents of
migrations/20251214_design_thinking_schema.sql - Execute
Option 2: Via psql on VPS
# SSH to VPS
ssh root@149.102.155.84
# Find the PostgreSQL container
docker ps | grep postgres
# Execute migration
docker exec -i <postgres_container> psql -U supabase -d postgres < /path/to/migration.sql
Option 3: Via docker exec with heredoc
docker exec -i supabase-db psql -U supabase postgres <<'SQL'
-- Paste contents of 20251214_design_thinking_schema.sql here
SQL
Verification
After applying, verify tables exist:
SELECT table_name FROM information_schema.tables
WHERE table_schema = 'public'
ORDER BY table_name;
Expected tables:
- projects
- project_phases
- backlog_items
- ai_recommendations
- project_health_snapshots
- project_activities