Create Migration
apex migration create <PKG_ALIAS> [ <ALIAS>] [--doctrine|eloquent] [--diff] [--dump]
|
|
Create new database migration.
|
Parameters
| Parameter | Description |
|---|---|
| pkg_alias | The package alias to create a migration for. |
| alias | Optional alias / name of the database migration. Not applicable for Doctrine migrations. |
Flags
| Flag | Description |
|---|---|
| --doctrine | If present, will create a Doctrine migration. |
| --eloquent | If present, will create an Eloquent migration. |
| --diff | Only applicable if creating a Doctrine migration and will diff the database schema. |
| --dump | Only applicable if creating a Doctrine migration, and will dump the full database schema. |
Examples
- ./apex migration create myshop
- ./apex migration create myshop --type doctrine --dump