Koha-clms/installer
Marcel de Rooy 70447d05de Bug 20754: DB revision to remove double accepted shares
[Originally submitted for bug 11943, parked at 20754.]
[Attempt to revive it now.]

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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit ba3bed7afe)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-05-11 15:22:52 -06:00
..
data/mysql Bug 20754: DB revision to remove double accepted shares 2020-05-11 15:22:52 -06:00
externalmodules.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
html-template-to-template-toolkit.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
install.pl Bug 24872: Set languages prefererences after install 2020-04-13 20:30:39 +00:00
onboarding.pl Bug 22489: Update onboarding tool for bug 18925 2019-03-15 11:33:09 +00:00