Koha-clms/installer/data/mysql
Kyle M Hall df4297621d Bug 1861 - Unique patrons logins not (totally) enforced
The Koha 3.0 patron admin page will prevent you from creating a user who
has an identical OPAC login as someone else (though I would change the
error message from "Login/password already exists." to "Login
already exists.", since it's not the password that's the
problem).

However, there's nothing enforced in the MySQL database to prevent
patrons from being imported or manually inserted with duplicate logins.
Would it be better to change the MySQL spec from this:
KEY `userid` (`userid`)
to this:
UNIQUE KEY `userid` (`userid`)

Test plan:
1) Enter mysql console
2) Attempt to create two borrowers with identical user id's
3) Note you are able to do so
4) Delete these bororwers
5) Apply this patch
6) Run updatedatabase.pl
7) Repeat step 2
8) Note you are now unable to do so

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, no koha-qa errors

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Leaves deletedborrowers as it is, deleting patrons still works ok.
Works according to test plan.
Database update will only be successful, when no duplicate entries
exist in the database.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-12-28 19:50:44 -03:00
..
atomicupdate Bug 11867: MTT: Manage *_PHONE notices 2014-05-02 20:29:20 +00:00
de-DE Bug 13147: Update German web installer files for 3.18 2014-11-27 10:50:45 -03:00
en Bug 13147: Update German web installer files for 3.18 2014-11-27 10:50:45 -03:00
es-ES Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
fr-FR Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
it-IT Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
mandatory Bug 12250: Update descriptions for languages, scripts and regions 2014-11-07 15:18:01 -03:00
nb-NO Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
pl-PL Bug 13199: Add missing notices for several installations 2014-11-20 09:47:50 -03:00
ru-RU Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
uk-UA Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 1861 - Unique patrons logins not (totally) enforced 2014-12-28 19:50:44 -03:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sysprefs.sql Bug 13436: (RM followup) university -> academic DB update 2014-12-19 16:48:13 -03:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 1861 - Unique patrons logins not (totally) enforced 2014-12-28 19:50:44 -03:00