Database Migrations
Manage schema versions across all tenant databases
Total Tenants
1
Initialized
1
Not Initialized
0
Has Errors
0
Available Migrations
Schema migrations that can be applied to tenant databases
v1
001_initial_schema
Initial tenant database schema with all core tables
Additional migrations will appear here when you add new .sql files to migrations/tenant/
Tenant Database Status
Overview of schema versions for all active tenants
| Tenant | Slug | Schema Status | Initialized | Actions |
|---|---|---|---|---|
| GAMMA | gamma | v1 | 12/22/2025 | Manage |
How to Add New Migrations
- Create a new SQL file in
migrations/tenant/following the naming convention:XXX_description.sql - The migration number (XXX) should be sequential (e.g., 002, 003, etc.)
- Each migration should be idempotent - safe to run multiple times
- Update the schema version at the end of your migration by inserting into
schema_migrations - For now, migrations need to be run manually in each tenant's Supabase SQL Editor
Future Enhancement
Automatic migration running across all tenants will be available in a future update. For now, use the "Manage" button to access each tenant's database management page.