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 + ]); + } }