Migrations
Apply and manage database migrations safely.
Schema changes are versioned in supabase/migrations/ (001–022). Always apply in order on a fresh database.
Applying migrations
Option A — SQL Editor
Paste each migration file into the Supabase SQL Editor and run in order.
Option B — Supabase CLI
bash
supabase link --project-ref rnyeonvbnrwephpviyzu
supabase db pushMigration list
| Migration | Adds |
|---|---|
001_hub_schema.sql | Core tables: profiles, projects, assets, comments, votes |
004_hub_project_files.sql | Project files (boards, docs) |
016_hub_tasks.sql | Tasks, labels, filters, sections |
019_hub_comments_linked_task.sql | Comment → task linking |
022_hub_share_links.sql | Public share tokens |
See supabase/migrations/README.md for full details.
Post-migration auth
After first migration, configure Authentication → URL configuration:
| Setting | Local | Production |
|---|---|---|
| Site URL | ||
| Redirect URLs | …/auth/callback (both environments) |