Change collation in favorites table regarding type field - Fixes Manage Favorites count
--- a/docs/tables.sql
+++ b/docs/tables.sql
@@ -237,7 +237,7 @@
CREATE TABLE `fanfiction_favorites` (
`uid` int(11) NOT NULL default '0',
`item` int(11) NOT NULL default '0',
- `type` char(2) NOT NULL default '',
+ `type` char(2) NOT NULL default '' COLLATE utf8mb4_unicode_ci,
`comments` text,
UNIQUE KEY `byitem` (`item`,`type`,`uid`),
UNIQUE KEY `byuid` (`uid`,`type`,`item`)
--- a/install/install.php
+++ b/install/install.php
@@ -655,7 +655,7 @@
$favorites = dbquery("CREATE TABLE IF NOT EXISTS `" . $tableprefix . "fanfiction_favorites` (
`uid` int(11) NOT NULL default '0',
`item` int(11) NOT NULL default '0',
- `type` char(2) NOT NULL default '',
+ `type` char(2) NOT NULL default '' COLLATE utf8mb4_unicode_ci,
`comments` text NOT NULL,
UNIQUE KEY `byitem` (`item`,`type`,`uid`),
UNIQUE KEY `byuid` (`uid`,`type`,`item`)