ILIAS  release_8 Revision v8.24
class.ilObjectDBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Object\Setup;
20
25{
26 protected \ilDBInterface $db;
27
28 public function prepare(\ilDBInterface $db): void
29 {
30 $this->db = $db;
31 }
32
33 public function step_1(): void
34 {
35 $field = [
36 "type" => \ilDBConstants::T_TEXT,
37 "length" => 255,
38 "notnull" => false
39 ];
40
41 $this->db->modifyTableColumn("object_translation", "title", $field);
42 }
43
47 public function step_2(): void
48 {
49 $this->db->modifyTableColumn("object_data", "import_id", [
50 "type" => \ilDBConstants::T_TEXT,
51 "length" => 255,
52 "notnull" => false
53 ]);
54 }
55}
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
step_2()
Increases the maximum length of object import-ids from 50 to 255 characters.
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: class.Agent.php:19