From 1b1452a1c96f576f2c88bdb38b710ff16cb32aeb Mon Sep 17 00:00:00 2001 From: Eric Heikes Date: Sun, 23 Apr 2017 12:02:36 -0500 Subject: [PATCH] Switch snapshots to binary data in DB. MySQL still doesn't like UTF8 data in MEDIUMTEXT collated as utf8mb4, so just use MEDIUMBLOB instead. --- toread.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toread.sql b/toread.sql index fc5a72b..78d52ed 100644 --- a/toread.sql +++ b/toread.sql @@ -35,7 +35,7 @@ CREATE TABLE `links` ( `title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `deleted` datetime DEFAULT NULL, `keywords` text COLLATE utf8mb4_unicode_ci, - `snapshot` mediumtext COLLATE utf8mb4_unicode_ci, + `snapshot` mediumblob, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */;