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 9573-9578 if ( CheckVersion($DBversion) ) { Link Here
9573
    SetVersion($DBversion);
9573
    SetVersion($DBversion);
9574
}
9574
}
9575
9575
9576
$DBversion = "3.17.00.XXX";
9577
if ( CheckVersion($DBversion) ) {
9578
    $dbh->do(q{
9579
        UPDATE borrowers SET userid = NULL where userid = ""
9580
    });
9581
9582
    $dbh->do(q{
9583
        ALTER TABLE borrowers
9584
            DROP INDEX userid ,
9585
            ADD UNIQUE userid (userid)
9586
    });
9587
9588
    print "Upgrade to $DBversion done (Bug 1861 - Unique patrons logins not (totally) enforced)\n";
9589
    SetVersion($DBversion);
9590
}
9591
9576
=head1 FUNCTIONS
9592
=head1 FUNCTIONS
9577
9593
9578
=head2 TableExists($table)
9594
=head2 TableExists($table)
9579
- 

Return to bug 1861