Skip to Content
Omnibase

Migrate

Summary

Database migration management

Usage

omnibase db migrate

Description

Create, apply, and roll back database migrations.

Use new to scaffold a blank migration file, generate to produce migration SQL from your Prisma schema and RLS policies, push to apply pending migrations to the database, reset to drop and re-apply everything, and down to roll back applied migrations.

Subcommands

  • new — Create a new database migration
  • push — Apply pending migrations to the database
  • reset — Drop all tables and re-apply all migrations (destructive)
  • generate — Generate migration files from Prisma schema + RLS policies
  • down — Roll back one or more applied migrations

On this page