@@ -, +, @@ +----+-------------+-----------+-------+---------------+---------+---------+------+------+-------------+ +----+-------------+-----------+-------+---------------+---------+---------+------+------+-------------+ +----+-------------+-----------+-------+---------------+---------+---------+------+------+-------------+ --- installer/data/mysql/kohastructure.sql | 3 +++ installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 2 files changed, 15 insertions(+) --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -271,6 +271,9 @@ CREATE TABLE `borrowers` ( -- this table includes information about your patrons KEY `branchcode` (`branchcode`), KEY `userid` (`userid`), KEY `guarantorid` (`guarantorid`), + KEY `surname` (`surname`(255)), + KEY `firstname` (`firstname`(255)), + KEY `othernames` (`othernames`(255)), CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`), CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -7743,6 +7743,18 @@ if(CheckVersion($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.13.00.XXX"; +if(CheckVersion($DBversion)) { + $dbh->do(q{ + ALTER TABLE `borrowers` + ADD KEY `surname` (`surname`(255)), + ADD KEY `firstname` (`firstname`(255)), + ADD KEY `othernames` (`othernames`(255)) + }); + print "Upgrade to $DBversion done (Koha 3.14 beta)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) --