ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Administration\Setup\ilAdministrationDBUpdateSteps Class Reference

Class ilAdministrationDBUpdateSteps. More...

+ Inheritance diagram for ILIAS\Administration\Setup\ilAdministrationDBUpdateSteps:
+ Collaboration diagram for ILIAS\Administration\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\Administration\Setup\ilAdministrationDBUpdateSteps::prepare ( ilDBInterface  $db)

◆ step_1()

ILIAS\Administration\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\Administration\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\Administration\Setup\ilAdministrationDBUpdateSteps::step_3 ( )

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

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 }

◆ step_4()

ILIAS\Administration\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\Administration\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\Administration\Setup\ilAdministrationDBUpdateSteps::$db
protected

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