Remove primary key EbookLocSubjectId

Add a SortOrder column to keep the LocSubjects in the same order as given in content.opf.
This commit is contained in:
Mike Colagrosso 2024-10-13 20:42:51 -06:00 committed by Alex Cabal
parent cada95383f
commit b4b6fde778
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,6 @@
CREATE TABLE `EbookLocSubjects` (
`EbookLocSubjectId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`EbookId` int(10) unsigned NOT NULL,
`LocSubjectId` int(10) unsigned NOT NULL,
PRIMARY KEY (`EbookLocSubjectId`),
`SortOrder` tinyint(3) unsigned NOT NULL,
UNIQUE KEY `idxUnique` (`EbookId`,`LocSubjectId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;