sequelize-auto
sequelize-auto copied to clipboard
Fix #638 and #639: treat single column unique indexes as primary key
- Treat single column unique indexes as a primary key if no other primary key was found.
- Make assertion errors in build.test fail the test if they occur.
Fixes #638 and implement #639.
I don't think we should do #639. I understand that you have legacy tables but unique columns are not primary keys and we should not mark them as such in their corresponding models