Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create composite primary keys using waterline

It seems that waterline-mysql doesn't allow composite primary keys to be created.

Is there any way of working around it, since I am building an app on the top of an existing database?

like image 346
tebesfinwo Avatar asked Nov 10 '22 07:11

tebesfinwo


1 Answers

waterline-mysql doesn't allow composite primary keys. I just saw that some days ago they've re-opened an issue on GitHub: https://github.com/balderdashy/waterline/issues/109 so I think they are going to implement it.

like image 75
marco.santonocito Avatar answered Nov 15 '22 07:11

marco.santonocito