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 push

Migration list

MigrationAdds
001_hub_schema.sqlCore tables: profiles, projects, assets, comments, votes
004_hub_project_files.sqlProject files (boards, docs)
016_hub_tasks.sqlTasks, labels, filters, sections
019_hub_comments_linked_task.sqlComment → task linking
022_hub_share_links.sqlPublic share tokens

See supabase/migrations/README.md for full details.

Post-migration auth

After first migration, configure Authentication → URL configuration:

SettingLocalProduction
Site URL
Redirect URLs…/auth/callback (both environments)