Bug 38330: (QA follow-up) Add index to opac_suppressed

As suggested by David, this one adds an index on the new column

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2025-05-08 17:32:20 +01:00 committed by Lucas Gass
parent 393c9fc2c8
commit fdfaeda9fc
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@ return {
$dbh->do(
q{
ALTER TABLE `biblio`
ADD COLUMN `opac_suppressed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'whether the record should be suppressed in the OPAC' AFTER `abstract`;
ADD COLUMN `opac_suppressed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'whether the record should be suppressed in the OPAC' AFTER `abstract`
ADD INDEX `suppressedidx` (`opac_suppressed`);
}
);

View File

@ -1112,7 +1112,8 @@ CREATE TABLE `biblio` (
`abstract` longtext DEFAULT NULL COMMENT 'summary from the MARC record (520$a in MARC21)',
`opac_suppressed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'whether the record should be suppressed in the OPAC',
PRIMARY KEY (`biblionumber`),
KEY `blbnoidx` (`biblionumber`)
KEY `blbnoidx` (`biblionumber`),
KEY `suppressedidx` (`opac_suppressed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;