From d3a089f8617bf7b209f03eb6652486fe1c8dece1 Mon Sep 17 00:00:00 2001 From: Thibeau Fuhrer Date: Thu, 8 Aug 2024 16:39:26 +0200 Subject: [PATCH] [FIX] increase max object import-id length to 255 characters. --- .../classes/Setup/class.ilObjectDBUpdateSteps.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Services/Object/classes/Setup/class.ilObjectDBUpdateSteps.php b/Services/Object/classes/Setup/class.ilObjectDBUpdateSteps.php index ddf716633e13..2648319965f1 100644 --- a/Services/Object/classes/Setup/class.ilObjectDBUpdateSteps.php +++ b/Services/Object/classes/Setup/class.ilObjectDBUpdateSteps.php @@ -40,4 +40,16 @@ public function step_1(): void $this->db->modifyTableColumn("object_translation", "title", $field); } + + /** + * Increases the maximum length of object import-ids from 50 to 255 characters. + */ + public function step_2(): void + { + $this->db->modifyTableColumn("object_data", "import_id", [ + "type" => \ilDBConstants::T_TEXT, + "length" => 255, + "notnull" => false + ]); + } }