ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Object\Setup\ilObjectDBUpdateSteps Class Reference
+ Inheritance diagram for ILIAS\Object\Setup\ilObjectDBUpdateSteps:
+ Collaboration diagram for ILIAS\Object\Setup\ilObjectDBUpdateSteps:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 
 step_2 ()
 Increases the maximum length of object import-ids from 50 to 255 characters. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilObjectDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ILIAS\Object\Setup\ilObjectDBUpdateSteps::prepare ( \ilDBInterface  $db)

Prepare the execution of the steps.

Do not use anything from the globals or the DIC inside your steps, only use the instance of the database provided here.

Implements ilDatabaseUpdateSteps.

Definition at line 28 of file class.ilObjectDBUpdateSteps.php.

References ILIAS\Object\Setup\ilObjectDBUpdateSteps\$db.

28  : void
29  {
30  $this->db = $db;
31  }

◆ step_1()

ILIAS\Object\Setup\ilObjectDBUpdateSteps::step_1 ( )

Definition at line 33 of file class.ilObjectDBUpdateSteps.php.

References ilDBConstants\T_TEXT.

33  : 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  }

◆ step_2()

ILIAS\Object\Setup\ilObjectDBUpdateSteps::step_2 ( )

Increases the maximum length of object import-ids from 50 to 255 characters.

Definition at line 47 of file class.ilObjectDBUpdateSteps.php.

References ilDBConstants\T_TEXT.

47  : void
48  {
49  $this->db->modifyTableColumn("object_data", "import_id", [
50  "type" => \ilDBConstants::T_TEXT,
51  "length" => 255,
52  "notnull" => false
53  ]);
54  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Object\Setup\ilObjectDBUpdateSteps::$db
protected

The documentation for this class was generated from the following file: