diff --git a/db/migrations/5.1.49_enlarge_mailqueue.php b/db/migrations/5.1.49_enlarge_mailqueue.php new file mode 100644 index 0000000000000000000000000000000000000000..803f5fa9763ea19c833fdb0cd2073dbf18c40abf --- /dev/null +++ b/db/migrations/5.1.49_enlarge_mailqueue.php @@ -0,0 +1,23 @@ +<?php + +/** + * @see https://gitlab.studip.de/studip/studip/-/issues/1134 + */ +final class EnlargeMailqueue extends Migration +{ + public function description() + { + return 'alters mail_queue_entries.mail to MEDIUMTEXT since TEXT is too short'; + } + + protected function up() + { + DBManager::get()->exec("ALTER TABLE `mail_queue_entries` MODIFY `mail` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL"); + } + + protected function down() + { + DBManager::get()->exec("ALTER TABLE `mail_queue_entries` MODIFY `mail` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL"); + } + +}