Sails Model.destroy() fails

A few days ago i ran into an issue where i was getting the following error running destroy() on a MySql database table.

Investigating further, i came to know that the table in question by chance did not have a primary key. Looking into the destroy function in the sails-mysql adapter, I figured out the reason …