From 8e5c9f5687488f1fe89581c3a65389120148e74c Mon Sep 17 00:00:00 2001 From: Andreas Svanberg <andreass@dsv.su.se> Date: Mon, 11 Nov 2024 11:17:15 +0100 Subject: [PATCH] Allow longer final thesis titles (#17) The titles entered are most often the same as the project title. The project title however has no length limit. When such a project tries to upload their final thesis the system will crash because the accepted long project title is rejected as the final thesis title. This change removes the length limit on final thesis titles to bring them to parity with the project title. See OTRS ticket [202411011026](https://otrs.dsv.su.se/otrs/index.pl?Action=AgentTicketZoom;TicketID=389771#1413199) This change has already been done manually in the production system to resolve the above ticket. ## How to test Submit a final thesis using a title longer than 255 characters and see that is accepted. Reviewed-on: https://gitea.dsv.su.se/DMC/scipro/pulls/17 Reviewed-by: niat8586 <nico@dsv.su.se> Co-authored-by: Andreas Svanberg <andreass@dsv.su.se> Co-committed-by: Andreas Svanberg <andreass@dsv.su.se> --- .../db/migration/V390__longer_titles_in_final_thesis.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 core/src/main/resources/db/migration/V390__longer_titles_in_final_thesis.sql diff --git a/core/src/main/resources/db/migration/V390__longer_titles_in_final_thesis.sql b/core/src/main/resources/db/migration/V390__longer_titles_in_final_thesis.sql new file mode 100644 index 0000000000..3edeeb923b --- /dev/null +++ b/core/src/main/resources/db/migration/V390__longer_titles_in_final_thesis.sql @@ -0,0 +1,3 @@ +-- Match what project.title allows +ALTER TABLE `FinalThesis` MODIFY `englishTitle` LONGTEXT NULL; +ALTER TABLE `FinalThesis` MODIFY `swedishTitle` LONGTEXT NULL;