Files
mylder-frontend/supabase/apply-migration.md
christiankrag ffb4dc28c5 Add Supabase schema migration for design thinking
- 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>
2025-12-14 19:55:44 +01:00

1.1 KiB

Applying the Design Thinking Schema Migration

  1. Go to https://supabase.mylder.io
  2. Login with dashboard credentials:
    • User: 5f7DODtzYzoXKusR
    • Password: VHmrbh9a6QVcXE2b2hMblhPoRsqsd2Gj
  3. Navigate to SQL Editor
  4. Copy contents of migrations/20251214_design_thinking_schema.sql
  5. 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