Hi, great tutorial. Does this keep the data in the database? or does it remove all data?
If a migration is rolled back, I think that will remove data.
"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"
Keeps data
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, great tutorial. Does this keep the data in the database? or does it remove all data?
If a migration is rolled back, I think that will remove data.
"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"
Keeps data