mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Add a SortOrder to preserve the order of the collections listed in content.opf for ebook.php, e.g., for To the Lighthouse: № 15 in the Modern Library’s 100 Best Novels set. Part of the Encyclopædia Britannica’s Great Books of the Western World set. № 2 in the BBC’s 100 Greatest British Novels (2015) set.
7 lines
296 B
SQL
7 lines
296 B
SQL
CREATE TABLE `CollectionEbooks` (
|
|
`EbookId` int(10) unsigned NOT NULL,
|
|
`CollectionId` int(10) unsigned NOT NULL,
|
|
`SequenceNumber` int(10) unsigned NULL,
|
|
`SortOrder` tinyint(3) unsigned NOT NULL,
|
|
UNIQUE KEY `idxUnique` (`EbookId`,`CollectionId`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|