From 974993553c58e5afcc671d0f6591bb00acb7f879 Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Sat, 15 Jul 2023 11:36:12 +0000 Subject: [PATCH] extend size of db-column hobby in user_info, closes #2869 Closes #2869 Merge request studip/studip!1942 --- .../5.4.11_exend_user_info_hobby_size.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 db/migrations/5.4.11_exend_user_info_hobby_size.php diff --git a/db/migrations/5.4.11_exend_user_info_hobby_size.php b/db/migrations/5.4.11_exend_user_info_hobby_size.php new file mode 100644 index 00000000000..5856aff20c6 --- /dev/null +++ b/db/migrations/5.4.11_exend_user_info_hobby_size.php @@ -0,0 +1,23 @@ +<?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 ''" + ); + } +} -- GitLab