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

(-)a/installer/data/mysql/kohastructure.sql (+3 lines)
Lines 271-276 CREATE TABLE `borrowers` ( -- this table includes information about your patrons Link Here
271
  KEY `branchcode` (`branchcode`),
271
  KEY `branchcode` (`branchcode`),
272
  KEY `userid` (`userid`),
272
  KEY `userid` (`userid`),
273
  KEY `guarantorid` (`guarantorid`),
273
  KEY `guarantorid` (`guarantorid`),
274
  KEY `surname_idx` (`surname`(255)),
275
  KEY `firstname_idx` (`firstname`(255)),
276
  KEY `othernames_idx` (`othernames`(255)),
274
  CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`),
277
  CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`),
275
  CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)
278
  CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)
276
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
279
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +11 lines)
Lines 7750-7755 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
7750
    SetVersion($DBversion);
7750
    SetVersion($DBversion);
7751
}
7751
}
7752
7752
7753
$DBversion = "3.13.00.XXX";
7754
if(CheckVersion($DBversion)) {
7755
    $dbh->do(q{
7756
        ALTER TABLE `borrowers`
7757
        ADD KEY `surname_idx` (`surname`(255)),
7758
        ADD KEY `firstname_idx` (`firstname`(255)),
7759
        ADD KEY `othernames_idx` (`othernames`(255))
7760
    });
7761
    print "Upgrade to $DBversion done (Bug 11249 - Add db indexes on borrowers names)\n";
7762
    SetVersion($DBversion);
7763
}
7753
7764
7754
=head1 FUNCTIONS
7765
=head1 FUNCTIONS
7755
7766
7756
- 

Return to bug 11249