sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

Fix #638 and #639: treat single column unique indexes as primary key

Open hhowe29 opened this issue 2 years ago • 1 comments

  1. Treat single column unique indexes as a primary key if no other primary key was found.
  2. Make assertion errors in build.test fail the test if they occur.

Fixes #638 and implement #639.

hhowe29 avatar Mar 11 '23 19:03 hhowe29

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

ephys avatar Mar 11 '23 20:03 ephys