Skip to content

GREG-17: Adding constraint to avoid duplicate roles

Tore.Brede requested to merge GREG-17_person_role_constraint into master

I added a constraint for the PersonRole-table so that the "person_id", "role_id", "unit_id", "start_date", "end_date" combination has to be unique. The same person cannot have the same role with the same start and end date in a unit.

Edited by Tore.Brede

Merge request reports