Migrations live inDocumentation Index
Fetch the complete documentation index at: https://docs.yourhq.ai/llms.txt
Use this file to discover all available pages before exploring further.
db/migrations/. Run them in filename order for a fresh project.
Migration files
| File | Domain |
|---|---|
001_extensions.sql | Postgres extensions |
002_enums.sql | Shared enum types |
003_shared_functions.sql | Common trigger functions |
004_workspace.sql | Workspace, pipeline, fields |
005_crm.sql | Contacts, organizations, campaigns |
006_gateways.sql | Gateway registry and tokens |
007_agents.sql | Agent metadata and org chart |
008_interactions.sql | Contact interaction timeline |
009_tasks_streams.sql | Tasks, streams, recurrence |
010_comments_attachments.sql | Comments and attachments |
011_assets_documents.sql | Documents and assets |
012_audit_notifications.sql | Audit log and notifications |
013_agent_inbox.sql | Inbox queue and automation triggers |
014_agent_commands.sql | Command queue and lifecycle RPCs |
015_usage_budgets.sql | Usage tracking and budgets |
016_rls_realtime_storage.sql | RLS policies, Realtime, Storage |
017_setup_wizard.sql | First-run setup RPC |
Applying migrations
- Fresh project
- Existing project
Run every
.sql file in order from the Supabase SQL Editor, or use the onboarding wizard which concatenates them into a single copy-paste blob.