Migrations & Deployment in Supabase

From the Supabase cheat sheet ยท Migration & Deployment ยท verified Jul 2026

Migrations & Deployment

Managing schema changes and deployments

bash
# Create migration
supabase migration new add_users_table

# Apply migrations
supabase db push

# Generate types
supabase gen types typescript --project-id <id> > types.ts

# Deploy to production
supabase link --project-ref <ref>
supabase db push
๐Ÿ“ Version control for database schema
๐Ÿ”„ Safe migration deployment process
๐ŸŒฟ Branch previews for testing
โšก Automatic TypeScript type generation

Continue with Supabase

Save the full cheat sheet or work through every related task.

Back to the full Supabase cheat sheet