Store EbookSourceType as a string/enum, not int

This commit is contained in:
Mike Colagrosso 2024-04-21 23:10:54 -06:00 committed by Alex Cabal
parent cc8de11ca4
commit 88b3ffd9ed

View file

@ -1,6 +1,6 @@
CREATE TABLE `EbookSources` ( CREATE TABLE `EbookSources` (
`EbookId` int(10) unsigned NOT NULL, `EbookId` int(10) unsigned NOT NULL,
`Type` tinyint(4) unsigned NOT NULL, `Type` enum('pg', 'pg_australia', 'pg_canada', 'ia', 'hathi_trust', 'wikisource', 'google_books', 'faded_page', 'other') DEFAULT 'other',
`Url` varchar(255) NOT NULL, `Url` varchar(255) NOT NULL,
KEY `index1` (`EbookId`) KEY `index1` (`EbookId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;