loopback-connector-mysql
loopback-connector-mysql copied to clipboard
feat: ensure ID is primary key after autoupdate
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