Skip to content
Snippets Groups Projects
Commit 97499355 authored by David Siegfried's avatar David Siegfried
Browse files

extend size of db-column hobby in user_info, closes #2869

Closes #2869

Merge request studip/studip!1942
parent 4d545b80
No related branches found
No related tags found
No related merge requests found
<?php
final class ExendUserInfoHobbySize extends Migration
{
public function description()
{
return 'Increase max lenghth of column hobby in user_info';
}
public function up()
{
DBManager::get()->exec(
"ALTER TABLE `user_info` CHANGE `hobby` `hobby` mediumtext NOT NULL"
);
}
public function down()
{
DBManager::get()->exec(
"ALTER TABLE `user_info` CHANGE `hobby` `hobby` VARCHAR(255) NOT NULL DEFAULT ''"
);
}
}
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