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 8949-8954 if ( CheckVersion($DBversion) ) { Link Here
8949
        ADD COLUMN cancellationreason TEXT DEFAULT NULL AFTER datecancellationprinted
8949
        ADD COLUMN cancellationreason TEXT DEFAULT NULL AFTER datecancellationprinted
8950
    ");
8950
    ");
8951
    print "Upgrade to $DBversion done (Bug 7162: Add aqorders.cancellationreason)\n";
8951
    print "Upgrade to $DBversion done (Bug 7162: Add aqorders.cancellationreason)\n";
8952
    SetVersion ($DBversion);
8953
}
8954
8955
$DBversion = "3.17.00.XXX";
8956
if ( CheckVersion($DBversion) ) {
8957
    $dbh->do(q{
8958
        UPDATE borrowers SET userid = NULL where userid = ""
8959
    });
8960
8961
    $dbh->do(q{
8962
        ALTER TABLE borrowers
8963
            DROP INDEX userid ,
8964
            ADD UNIQUE userid (userid)
8965
    });
8966
8967
    print "Upgrade to $DBversion done (Bug 1861 - Unique patrons logins not (totally) enforced)\n";
8952
    SetVersion($DBversion);
8968
    SetVersion($DBversion);
8953
}
8969
}
8954
8970
8955
- 

Return to bug 1861