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 / +16 lines)
Lines 9525-9530 if ( CheckVersion($DBversion) ) { Link Here
9525
    SetVersion($DBversion);
9525
    SetVersion($DBversion);
9526
}
9526
}
9527
9527
9528
$DBversion = "3.17.00.XXX";
9529
if ( CheckVersion($DBversion) ) {
9530
    $dbh->do(q{
9531
        UPDATE borrowers SET userid = NULL where userid = ""
9532
    });
9533
9534
    $dbh->do(q{
9535
        ALTER TABLE borrowers
9536
            DROP INDEX userid ,
9537
            ADD UNIQUE userid (userid)
9538
    });
9539
9540
    print "Upgrade to $DBversion done (Bug 1861 - Unique patrons logins not (totally) enforced)\n";
9541
    SetVersion($DBversion);
9542
}
9543
9528
=head1 FUNCTIONS
9544
=head1 FUNCTIONS
9529
9545
9530
=head2 TableExists($table)
9546
=head2 TableExists($table)
9531
- 

Return to bug 1861