Remove primary key EbookTagId

Add a SortOrder column so that tags are presented in the same order as listed in content.opf.
This commit is contained in:
Mike Colagrosso 2024-10-13 20:48:42 -06:00 committed by Alex Cabal
parent b4b6fde778
commit 4e8ba5ddaa
2 changed files with 6 additions and 6 deletions

View file

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