Skip to main content

All Questions

0 votes
2 answers
1k views

Sequelize queryInterface bulkDelete does not reset id sequence

I use pg_dump to make a copy of the database, copy1.sql. I run an up migration to create a new instance up: asyn (queryInterface) => { return await queryInterface.bulkInsert('keys', [{ clientKey: ...
C. Yee's user avatar
  • 197
0 votes
0 answers
658 views

What is the difference between bulk delete and destroy in sequelize?

I am trying to delete all my records from a table using sequelize but saw that there are two possible functions to use: queryInterface.bulkDelete and queryInterface.destroy . Can someone tell me what ...
tnkh's user avatar
  • 1,839