Management Commands¶
Create and manage migrations.
queen create¶
Generate a new migration file from a template.
| Flag | Type | Default | Description |
|---|---|---|---|
--type |
string | sql | Migration type: sql or go |
Examples¶
SQL migration:
Creates a migration file in migrations/ with the next version based on your naming configuration.
Go migration:
Creates a Go file template with UpFunc and DownFunc stubs.
queen squash¶
Warning
This command is not yet implemented and will return an error. It is reserved for a future release.
Combine multiple migrations into one.
queen baseline¶
Warning
This command is not yet implemented and will return an error. It is reserved for a future release.
Create a baseline from current schema. Uses the --at flag to specify the version number for the baseline.