Skip to content
Snippets Groups Projects
Commit b8c9b120 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3655

Closes #3655

Merge request studip/studip!2534
parent 9952a73d
No related branches found
No related tags found
No related merge requests found
<?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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment