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-nameyarn migrations:create my-migration-nameTo run all pending migrations you need to use the command:
npm run migrations:runyarn migrations:runTo see the list of migrations that have been executed you can run the command:
npm run migrations:showyarn migrations:showTo revert the last migration you can run the command:
npm run migrations:rollbackyarn migrations:rollbackLast updated
Was this helpful?