- 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>
46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
# Applying the Design Thinking Schema Migration
|
|
|
|
## Option 1: Supabase Studio (Recommended)
|
|
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
|
|
```bash
|
|
# 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
|
|
```bash
|
|
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:
|
|
```sql
|
|
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
|