Profiler/Profiles

* allow strings with less then 3 chars in name search
 * store name as binary to allow accent-sensitive search
   (note: guilds and arenateams have the same issue but utf8mb4_bin can't be applied blindly as the search also becomes case-sensitive (wich is already handled for profiles))
This commit is contained in:
Sarjuuk
2018-04-28 11:32:22 +02:00
parent b13f3af03e
commit c5e9762830
3 changed files with 4 additions and 3 deletions

View File

@@ -1827,7 +1827,7 @@ CREATE TABLE `aowow_profiler_profiles` (
`copy` int(10) unsigned DEFAULT NULL,
`icon` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user` int(11) unsigned DEFAULT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`race` tinyint(3) unsigned NOT NULL,
`class` tinyint(3) unsigned NOT NULL,
`level` tinyint(3) unsigned NOT NULL,

View File

@@ -0,0 +1 @@
ALTER TABLE `aowow_profiler_profiles` CHANGE COLUMN `name` `name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_bin' AFTER `user`;