Migration Commands

Depending on the package manager you are using, you can work with any of the following commands.

To create a new migration you must use the command:

npm run migrations:create my-migration-name

To run all pending migrations you need to use the command:

npm run migrations:run

To see the list of migrations that have been executed you can run the command:

npm run migrations:show

To revert the last migration you can run the command:

npm run migrations:rollback

Last updated