Bug 39618: (QA follow-up) add prefix length to index key

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
David Cook 2025-05-11 23:50:54 +00:00 committed by Katrin Fischer
parent 132593c8a8
commit ba3feb54ee
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ return {
$dbh->do(
q{
ALTER TABLE `borrowers`
ADD KEY `preferred_name_idx` (`preferred_name`)
ADD KEY `preferred_name_idx` (`preferred_name`(768))
}
);
say_success( $out, "Added index to borrowers.preferred_name" );

View File

@ -1620,7 +1620,7 @@ CREATE TABLE `borrowers` (
KEY `cardnumber_idx` (`cardnumber`),
KEY `userid_idx` (`userid`),
KEY `middle_name_idx` (`middle_name`(768)),
KEY `preferred_name_idx` (`preferred_name`),
KEY `preferred_name_idx` (`preferred_name`(768)),
CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`),
CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`),
CONSTRAINT `borrowers_ibfk_3` FOREIGN KEY (`sms_provider_id`) REFERENCES `sms_providers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE