migrate-apply
Apply pending database migration files to synchronize schema changes. Specify database URL and migration directory to execute or preview SQL updates.
Instructions
Apply pending migration files to a database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Database URL (required) | |
| dirUrl | No | URL to migration directory (e.g., file://migrations) | |
| dryRun | No | Print SQL without executing | |
| txMode | No | Transaction mode: none, file, or all | |
| baseline | No | Start from a specific version | |
| allowDirty | No | Allow applying on a non-clean database | |
| format | No | Output format: text or json |