Skip to content
Snippets Groups Projects
Commit c0afe3fb authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER Campus: Data too long for column 'content_type'"

parent fccf3d7b
No related branches found
No related tags found
No related merge requests found
<?php
class ResizeOerContentTypeLength extends \Migration
{
public function description()
{
return 'Makes the database field of oer_material`s content_type longer so that it is conform to the rfc.';
}
public function up()
{
\DBManager::get()->exec("
ALTER TABLE `oer_material`
CHANGE COLUMN `content_type` `content_type` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
");
}
public function down()
{
\DBManager::get()->exec("
ALTER TABLE `oer_material`
CHANGE COLUMN `content_type` `content_type` varchar(64) NOT NULL
");
}
}
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