21 lines
420 B
Markdown
21 lines
420 B
Markdown
|
# Migrator
|
||
|
|
||
|
## Needs
|
||
|
|
||
|
+ To detect changes in migration schema and create migrations with Phinx
|
||
|
+ Keep track of incremental changes in schema
|
||
|
+ Create migration for Phinx
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Check for changes:
|
||
|
<code>vendor/bin/migrator check</code>
|
||
|
|
||
|
Create migrations:
|
||
|
<code>vendor/bin/migrator create</code>
|
||
|
|
||
|
Check the create migrations and then:
|
||
|
<code>vendor/bin/migrator migrate</code>
|
||
|
or
|
||
|
<code>vendor/bin/phinx migrate</code>
|