bin/migration/up.ts script. Each module’s migration script is run from its own directory. With --drop, the database is dropped before migrations run.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--drop | Drop the database before running migrations. | false |
AI Skill
This command ships a matchingdatabase:migrate skill. It teaches your AI agent to drive the database lifecycle — applying and rolling back migrations, reseeding, and verifying the schema matches the entities.
- Claude
- Codex