DEV Community

Discussion on: How to Add New Fields to Existing Sequelize Migration

Collapse
ebzeal profile image
Olusola Ajayi

"npx sequelize-cli db:migrate" keeps the data in the database. To wipe the database you'd need to do "npx sequelize-cli db:migrate:undo:all" before "npx sequelize-cli db:migrate"