[Koha-bugs] [Bug 18003] Should deletedborrowers.borrowernumber be a primary key?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 30 12:33:40 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18003

--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Does the problem mentioned on top only occur on an empty borrowers table with a
mysql restart? Supposing that this is the case and it is quite rare, can't we
just use borrowernumber as the primary key on borrowers and deletedborrowers,
obviously having no constraints on deletedborrowers.

We could even add a check for borrowernumber when creating a patron, and update
the borrowernumber if needed to not match deletedborrowers? Ugly, but fixing
some problems.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list