diff --git a/config/sql/se/CollectionEbooks.sql b/config/sql/se/CollectionEbooks.sql index 03efac97..3fc32d05 100644 --- a/config/sql/se/CollectionEbooks.sql +++ b/config/sql/se/CollectionEbooks.sql @@ -3,5 +3,6 @@ CREATE TABLE IF NOT EXISTS `CollectionEbooks` ( `CollectionId` int(10) unsigned NOT NULL, `SequenceNumber` int(10) unsigned NULL, `SortOrder` tinyint(3) unsigned NOT NULL, - UNIQUE KEY `idxUnique` (`EbookId`,`CollectionId`) + UNIQUE KEY `idxUnique` (`EbookId`,`CollectionId`), + KEY `index1` (`CollectionId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; diff --git a/config/sql/se/EbookLocSubjects.sql b/config/sql/se/EbookLocSubjects.sql index f6119cfa..df6cb82f 100644 --- a/config/sql/se/EbookLocSubjects.sql +++ b/config/sql/se/EbookLocSubjects.sql @@ -2,5 +2,6 @@ CREATE TABLE IF NOT EXISTS `EbookLocSubjects` ( `EbookId` int(10) unsigned NOT NULL, `LocSubjectId` int(10) unsigned NOT NULL, `SortOrder` tinyint(3) unsigned NOT NULL, - UNIQUE KEY `idxUnique` (`EbookId`,`LocSubjectId`) + UNIQUE KEY `idxUnique` (`EbookId`,`LocSubjectId`), + KEY `index1` (`LocSubjectId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; diff --git a/config/sql/se/EbookTags.sql b/config/sql/se/EbookTags.sql index 3b273b2f..b58bf411 100644 --- a/config/sql/se/EbookTags.sql +++ b/config/sql/se/EbookTags.sql @@ -2,5 +2,6 @@ CREATE TABLE IF NOT EXISTS `EbookTags` ( `EbookId` int(10) unsigned NOT NULL, `TagId` int(10) unsigned NOT NULL, `SortOrder` tinyint(3) unsigned NOT NULL, - UNIQUE KEY `idxUnique` (`EbookId`,`TagId`) + UNIQUE KEY `idxUnique` (`EbookId`,`TagId`), + KEY `index1` (`TagId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;