diff --git a/db/migrations/5.5.23.1_change_collation_for_wiki_tables_user_id.php b/db/migrations/5.5.23.1_change_collation_for_wiki_tables_user_id.php
new file mode 100644
index 0000000000000000000000000000000000000000..8b2fa8a98bef3517d5bbde9afaf44326f87d0764
--- /dev/null
+++ b/db/migrations/5.5.23.1_change_collation_for_wiki_tables_user_id.php
@@ -0,0 +1,25 @@
+<?php
+final class ChangeCollationForWikiTablesUserId extends Migration
+{
+    protected function up()
+    {
+        $query = "ALTER TABLE `wiki_versions`
+                  CHANGE COLUMN `user_id` `user_id` CHAR(32) COLLATE `latin1_bin` NOT NULL";
+        DBManager::get()->exec($query);
+
+        $query = "ALTER TABLE `wiki_pages`
+                  CHANGE COLUMN `user_id` `user_id` CHAR(32) COLLATE `latin1_bin` NOT NULL";
+        DBManager::get()->exec($query);
+    }
+
+    protected function down()
+    {
+        $query = "ALTER TABLE `wiki_versions`
+                  CHANGE COLUMN `user_id` `user_id` CHAR(32) NOT NULL";
+        DBManager::get()->exec($query);
+
+        $query = "ALTER TABLE `wiki_pages`
+                  CHANGE COLUMN `user_id` `user_id` CHAR(32) NOT NULL";
+        DBManager::get()->exec($query);
+    }
+}