updateOnDuplicate
problem when set to true.
#9288
Labels
breaking change
For issues and PRs. Changes that break compatibility and require a major version increment.
Milestone
Looking the code of
updateOnDuplicate
looks like we can set an array of fields or a boolean . If we pass a booleantrue
, the bulkCreate tries to update the primary key field as well, trowing anSequelizeForeignKeyConstraintError SequelizeForeignKeyConstraintError: Cannot delete or update a parent row
error.Code: https://github.com/sequelize/sequelize/blob/66fb6b67a74c107bfaf72304db315bf600c37921/lib/model.js#L2348`
The text was updated successfully, but these errors were encountered: