loopback-connector-mysql icon indicating copy to clipboard operation
loopback-connector-mysql copied to clipboard

feat: ensure ID is primary key after autoupdate

Open stefanblaginov opened this issue 3 years ago • 0 comments

Signed-off-by: Stefan Blaginov [email protected]

Fixes #461

Ensures that a field set as an id in the model file, gets reflected as a primary key in the MySQL database during an autoupdate.

Checklist

  • [x] DCO (Developer Certificate of Origin) signed in all commits
  • [x] npm test passes on your machine
  • [ ] New tests added or existing tests modified to cover all changes
  • [x] Code conforms with the style guide
  • [x] Commit messages are following our guidelines

stefanblaginov avatar Jan 24 '22 22:01 stefanblaginov