https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20754
--- Comment #1 from Marcel de Rooy <[email protected]> --- Created attachment 75245 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75245&action=edit Bug 20754: Db revision to remove double accepted shares [Moved from bug 11943] Although it is no problem to have them, we could do a cleanup. This patch just removes duplicate rows from the table. Note: I considered adding a unique index like: ALTER TABLE virtualshelfshares ADD UNIQUE INDEX (shelfnumber, borrowernumber, invitekey); But the possible NULL values in borrowernumber and/or invitekey require additional code changes. So I left it alone. Test plan: [1] Create two records with same borrowernumber and shelfnumber in the shares table, if not present already. [2] Run updatedatabase.pl Signed-off-by: Marcel de Rooy <[email protected]> Signed-off-by: Nick Clemens <[email protected]> Signed-off-by: Kyle M Hall <[email protected]> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
