Closed tomberek closed 5 years ago
Pretty much, yes. The only thing left to do here is to extend the TableInfo
type (defined in Database.Selda.Backend.Internal
) with a tablePkGroups
or similar, and make sure the validation and migration machinery takes it into account. It's probably a good idea to get rid of the colIsPK
field from ColInfo
as well (and perhaps colIsUnique
while we're at it).
The one fiddly thing about it is to implement support in the backends (getTableInfo
), but the code will probably be very similar to that for getting the unique groups, for both backends.
Closing this since #113 was merged.
Would something like this fix #25 ?