You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking the code of updateOnDuplicate looks like we can set an array of fields or a boolean . If we pass a boolean true, the bulkCreate tries to update the primary key field as well, trowing an SequelizeForeignKeyConstraintError SequelizeForeignKeyConstraintError: Cannot delete or update a parent row error.
Activity
sushantdhiman commentedon Apr 11, 2018
I will remove boolean support and just keep array option as docs say
sushantdhiman commentedon Apr 11, 2018
Fixed by 8b937dd
Fix bug caused by updateOnDuplicate