Skip to content

GREG-208: Adding constraint to prevent identity duplicates

Tore.Brede requested to merge GREG-208_add_constraints_to_identity into master

I added a constraint for (identity type, value) on the identity table.

Before this change is applied the database in the environments should be checked to make sure there are no duplicate IDs so that the migration will succeed. It is OK for UiB production since we have so few people there, for the UiB test environment I need to do some updates probably, and I don't know how the situation is for UiO. It is easy to the if you can run a SQL-query against the database.

I added error message to three places on the frontend where this problem can arise:

Screenshot_from_2022-02-28_13-07-01

Screenshot_from_2022-02-28_11-24-52

Screenshot_from_2022-03-02_10-50-58

Edited by Tore.Brede

Merge request reports

Loading