ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Setup\ilAdministrationDBUpdateSteps Class Reference

Class ilAdministrationDBUpdateSteps. More...

+ Inheritance diagram for ILIAS\Setup\ilAdministrationDBUpdateSteps:
+ Collaboration diagram for ILIAS\Setup\ilAdministrationDBUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
 step_3 ()
 
 step_4 ()
 Remove the global special charactor selector settings. More...
 
 step_5 ()
 Remove the global special charactor selector settings. More...
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Member Function Documentation

◆ prepare()

ILIAS\Setup\ilAdministrationDBUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 34 of file class.ilAdministrationDBUpdateSteps.php.

References ILIAS\Setup\ilAdministrationDBUpdateSteps\$db.

34  : void
35  {
36  $this->db = $db;
37  }

◆ step_1()

ILIAS\Setup\ilAdministrationDBUpdateSteps::step_1 ( )

Definition at line 39 of file class.ilAdministrationDBUpdateSteps.php.

39  : void
40  {
41  // note: release_8 has step_3 as step_1
42  }

◆ step_2()

ILIAS\Setup\ilAdministrationDBUpdateSteps::step_2 ( )

Definition at line 44 of file class.ilAdministrationDBUpdateSteps.php.

44  : void
45  {
46  if ($this->db->sequenceExists("adm_settings_template")) {
47  $this->db->dropSequence("adm_settings_template");
48  }
49 
50  if ($this->db->tableExists("adm_settings_template")) {
51  $this->db->dropTable("adm_settings_template");
52  }
53  }

◆ step_3()

ILIAS\Setup\ilAdministrationDBUpdateSteps::step_3 ( )

Definition at line 55 of file class.ilAdministrationDBUpdateSteps.php.

References null.

55  : void
56  {
57  $this->db->addTableColumn(
58  'settings',
59  'value2',
60  array( "type" => "text",
61  "length" => 4000,
62  "notnull" => false,
63  "default" => null)
64  );
65 
66  $this->db->query("UPDATE settings SET value2 = SUBSTRING(value, 1, 4000)");
67  $this->db->dropTableColumn('settings', 'value');
68  $this->db->renameTableColumn('settings', 'value2', 'value');
69  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ step_4()

ILIAS\Setup\ilAdministrationDBUpdateSteps::step_4 ( )

Remove the global special charactor selector settings.

Definition at line 74 of file class.ilAdministrationDBUpdateSteps.php.

74  : void
75  {
76  $this->db->manipulate("DELETE FROM settings WHERE keyword LIKE 'char_selector%'");
77  }

◆ step_5()

ILIAS\Setup\ilAdministrationDBUpdateSteps::step_5 ( )

Remove the global special charactor selector settings.

Definition at line 82 of file class.ilAdministrationDBUpdateSteps.php.

82  : void
83  {
84  $this->db->manipulate("DELETE FROM settings WHERE module = 'MathJax'");
85  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Setup\ilAdministrationDBUpdateSteps::$db
protected

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