Closed iquiw closed 11 years ago
It is possible to specify unique key which on many databases is just the same as primary key without autoincrement. See http://github.com/lykahb/groundhog/blob/master/examples/keys.hs
I see.
I'd like to use primary key since it conceptually indicates preferred identifier.
Anyway, thanks for the information. Please feel free to close the issue.
After the latest refactoring of migration required by MySQL, implementing this feature became easier. I committed it in 8837a5d187e0fa4efc706efc492975ac7cc99e25. There is example of its usage in tests.hs (UniqueKeySample). Thank you for suggestion.
It's very attractive feature to me. I will try it. Thanks!
I like groundhog feature to be able to omit automatic primary key.
In addition to that, is it possible (or planned) to specify primary key on arbitrary column?