knex Migration Notes

Migrate

[sourcecode language=”bash”]
knex migrate:latest
[/sourcecode]

Rollback

[sourcecode language=”bash”]
knex migrate:rollback
[/sourcecode]

Migrate/Rollback to a specific Environment

[sourcecode language=”bash”]
knex migrate:latest –env test
[/sourcecode]

This site uses Akismet to reduce spam. Learn how your comment data is processed.