[Koha-bugs] [Bug 32154] Missing primary key on erm_user_roles table
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 11 09:01:58 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32154
--- Comment #4 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Martin Renvoize from comment #3)
> Just thinking about this one, it feels to me like it should be a multi-field
> primary key rather than a new field entirely.
>
> Having said that, it looks like we allow a user + licence + agreement
> combination to have multiple roles? That would mean having all four fields
> in the primary key... food for thought.
It's actually not possible, license_id and agreement_id are nullable and thus
cannot be part of the primary key
https://mariadb.com/kb/en/primary-keys-with-nullable-columns/
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list