From ced367cbd88e7bf4f72289abacce24e7edf55ca0 Mon Sep 17 00:00:00 2001 From: Michael Gage Date: Thu, 22 Jun 2017 12:53:09 -0400 Subject: [PATCH] Limit the length of the author KEY in the author table. This will become more important as more people use utf8 in databases but it doesn't interfere with any of the current databases that use only the latin1 encodings. --- bin/OPL-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/OPL-update b/bin/OPL-update index 430b2eabc3..fca18b7354 100755 --- a/bin/OPL-update +++ b/bin/OPL-update @@ -159,7 +159,7 @@ if($libraryVersion eq '2.5') { lastname varchar (255) NOT NULL, firstname varchar (255) NOT NULL, email varchar (255), - KEY author (lastname, firstname), + KEY author (lastname(100), firstname(100)), PRIMARY KEY (author_id) '], [$tables{path}, '