From 88b3ffd9edef867ed4b3d31592cbf010f41f8fb8 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Sun, 21 Apr 2024 23:10:54 -0600 Subject: [PATCH] Store EbookSourceType as a string/enum, not int --- config/sql/se/EbookSources.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sql/se/EbookSources.sql b/config/sql/se/EbookSources.sql index 98dff2b0..6c2d3c42 100644 --- a/config/sql/se/EbookSources.sql +++ b/config/sql/se/EbookSources.sql @@ -1,6 +1,6 @@ CREATE TABLE `EbookSources` ( `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, KEY `index1` (`EbookId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;