View | Details | Raw Unified | Return to bug 1861
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 269-275 CREATE TABLE `borrowers` ( -- this table includes information about your patrons Link Here
269
  PRIMARY KEY `borrowernumber` (`borrowernumber`),
269
  PRIMARY KEY `borrowernumber` (`borrowernumber`),
270
  KEY `categorycode` (`categorycode`),
270
  KEY `categorycode` (`categorycode`),
271
  KEY `branchcode` (`branchcode`),
271
  KEY `branchcode` (`branchcode`),
272
  KEY `userid` (`userid`),
272
  UNIQUE KEY `userid` (`userid`),
273
  KEY `guarantorid` (`guarantorid`),
273
  KEY `guarantorid` (`guarantorid`),
274
  KEY `surname_idx` (`surname`(255)),
274
  KEY `surname_idx` (`surname`(255)),
275
  KEY `firstname_idx` (`firstname`(255)),
275
  KEY `firstname_idx` (`firstname`(255)),
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +12 lines)
Lines 8570-8575 if ( CheckVersion($DBversion) ) { Link Here
8570
    SetVersion($DBversion);
8570
    SetVersion($DBversion);
8571
}
8571
}
8572
8572
8573
$DBversion = "3.17.00.XXX";
8574
if ( CheckVersion($DBversion) ) {
8575
    $dbh->do(q{
8576
        ALTER TABLE borrowers
8577
            DROP INDEX userid ,
8578
            ADD UNIQUE userid (userid)
8579
    });
8580
8581
    print "Upgrade to $DBversion done (Bug 1861 - Unique patrons logins not (totally) enforced)\n";
8582
    SetVersion($DBversion);
8583
}
8584
8573
=head1 FUNCTIONS
8585
=head1 FUNCTIONS
8574
8586
8575
=head2 TableExists($table)
8587
=head2 TableExists($table)
8576
- 

Return to bug 1861