Skip to content

Commit

Permalink
Switch snapshots to binary data in DB.
Browse files Browse the repository at this point in the history
MySQL still doesn't like UTF8 data in
MEDIUMTEXT collated as utf8mb4, so just
use MEDIUMBLOB instead.
  • Loading branch information
eheikes committed Apr 23, 2017
1 parent 090c7d0 commit 1b1452a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toread.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 */;
Expand Down

0 comments on commit 1b1452a

Please sign in to comment.