Koha-clms/installer/data/mysql
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
..
atomicupdate Bug 20754: DB revision to remove double accepted shares 2020-05-11 15:22:52 -06:00
de-DE Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
en Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
es-ES Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
fr-CA Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
fr-FR Bug 24856: Remove itemtypes.imageurl in fr-FR sample data 2020-04-13 17:59:38 +00:00
it-IT Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
mandatory Bug 22770: Fix typo in German language description of el 2019-06-20 14:27:57 +02:00
nb-NO Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
pl-PL Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-13 21:02:18 +00:00
ru-RU Bug 24274: Remove field 01e from sql installer files 2020-01-13 23:12:20 +00:00
uk-UA Bug 24274: Remove field 01e from sql installer files 2020-01-13 23:12:20 +00:00
account_offset_types.sql Bug 22521: (QA follow-up) Corrections to tests 2019-04-17 16:49:36 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17135: [QA Follow-up] Changes as to reporting 2016-09-16 10:47:03 +00:00
kohastructure.sql Bug 24640: Allow quotes.timestamp to be NULL 2020-03-10 22:36:57 +00:00
labels_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
patroncards_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
sysprefs.sql Bug 21633: Remove finesMode 'test' 2020-03-18 22:00:19 +00:00
update22to30.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
updatedatabase.pl Increment version for 19.05.10 release 2020-04-22 21:36:31 +00:00
userflags.sql Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-14 20:19:59 +00:00
userpermissions.sql Bug 24846: Add new permission batch_extend_due_dates 2020-03-24 15:31:29 +00:00