Skip to main content
Generate a new migration file with its test file inside a module. The migration is named automatically from a timestamp version, the migrations.ts export file is regenerated, and bin/migration/up.ts is created for the module if it does not already exist.

Usage

ooneex migration:create [options]

Examples

ooneex migration:create
ooneex migration:create --module=blog

Options

OptionDescriptionDefault
--moduleModule the migration is created in.shared

AI Skill

This command ships a matching migration:create skill. It teaches your AI agent to generate a migration file and its test, then complete the up() and down() implementations for the schema change using @ooneex/migrations.
ooneex claude:init