diff --git a/db/migrations/1.328_resize_oer_content_type_length.php b/db/migrations/1.328_resize_oer_content_type_length.php new file mode 100755 index 0000000000000000000000000000000000000000..0fd36b622c34c31a2289e76b8192fb7b51553480 --- /dev/null +++ b/db/migrations/1.328_resize_oer_content_type_length.php @@ -0,0 +1,25 @@ +<?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 + "); + } +}