Migrations
Migrations are the recommended way to make changes to your database schema in production. They are a way to version control your database schema, allowing you to easily upgrade and downgrade your database as your application evolves.
Sequelize provides a sequelize-cli, a Command Line Interface that can be used to create and run migrations. Head to the sequelize-cli page for more information on how to use write migrations.
Of course, you are free to use any other migration tool:
- Umzug is a great alternative that the Sequelize CLI uses under the hood.
- Third-party tools that can be used to help with migrations are also listed on the Third-Party Resources page.