ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilECSUpdateSteps8 Class Reference

Class ilECSUpdateSteps8 contains update steps for release 8. More...

+ Inheritance diagram for ilECSUpdateSteps8:
+ Collaboration diagram for ilECSUpdateSteps8:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 Add consent table. More...
 
 step_2 ()
 
 step_3 ()
 
 step_4 ()
 
 step_5 ()
 
 step_6 ()
 
 step_7 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Class ilECSUpdateSteps8 contains update steps for release 8.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.d.nosp@m.e

Definition at line 26 of file ilECSUpdateSteps8.php.

Member Function Documentation

◆ prepare()

ilECSUpdateSteps8::prepare ( ilDBInterface  $db)

Definition at line 30 of file ilECSUpdateSteps8.php.

30 : void
31 {
32 $this->db = $db;
33 }

References $db.

◆ step_1()

ilECSUpdateSteps8::step_1 ( )

Add consent table.

Definition at line 38 of file ilECSUpdateSteps8.php.

38 : void
39 {
40 if (!$this->db->tableExists('ecs_user_consent')) {
41 $this->db->createTable('ecs_user_consent', [
42 'usr_id' => [
44 'length' => 4,
45 'notnull' => true
46 ],
47 'mid' => [
49 'length' => 4,
50 'notnull' => true,
51 ]
52 ]);
53 $this->db->addPrimaryKey('ecs_user_consent', ['usr_id', 'mid']);
54 }
55 }

References ilDBConstants\T_INTEGER.

◆ step_2()

ilECSUpdateSteps8::step_2 ( )

Definition at line 57 of file ilECSUpdateSteps8.php.

57 : void
58 {
59 if (!$this->db->tableColumnExists('ecs_part_settings', 'username_placeholders')) {
60 $this->db->addTableColumn(
61 'ecs_part_settings',
62 'username_placeholders',
63 [
64 'type' => ilDBConstants::T_TEXT,
65 'notnull' => false,
66 'length' => 500,
67 'default' => null
68 ]
69 );
70 }
71 }

References ilDBConstants\T_TEXT.

◆ step_3()

ilECSUpdateSteps8::step_3 ( )

Definition at line 73 of file ilECSUpdateSteps8.php.

73 : void
74 {
75 if (!$this->db->tableColumnExists('ecs_part_settings', 'incoming_auth_type')) {
76 $this->db->addTableColumn(
77 'ecs_part_settings',
78 'incoming_auth_type',
79 [
80 'type' => ilDBConstants::T_TEXT,
81 'notnull' => true,
82 'length' => 1,
83 'default' => 0
84 ]
85 );
86 }
87 }

References ilDBConstants\T_TEXT.

◆ step_4()

ilECSUpdateSteps8::step_4 ( )

Definition at line 89 of file ilECSUpdateSteps8.php.

89 : void
90 {
91 if (!$this->db->tableColumnExists('ecs_part_settings', 'incoming_local_accounts')) {
92 $this->db->addTableColumn(
93 'ecs_part_settings',
94 'incoming_local_accounts',
95 [
97 'notnull' => true,
98 'length' => 1,
99 'default' => 1
100 ]
101 );
102 }
103 }

References ilDBConstants\T_INTEGER.

◆ step_5()

ilECSUpdateSteps8::step_5 ( )

Definition at line 105 of file ilECSUpdateSteps8.php.

105 : void
106 {
107 if (!$this->db->tableColumnExists('ecs_part_settings', 'outgoing_auth_mode')) {
108 $this->db->addTableColumn(
109 'ecs_part_settings',
110 'outgoing_auth_mode',
111 [
112 'type' => ilDBConstants::T_TEXT,
113 'notnull' => false,
114 'length' => 64,
115 'default' => ''
116 ]
117 );
118 }
119 }

References ilDBConstants\T_TEXT.

◆ step_6()

ilECSUpdateSteps8::step_6 ( )

Definition at line 121 of file ilECSUpdateSteps8.php.

121 : void
122 {
123 if ($this->db->tableColumnExists('ecs_part_settings', 'outgoing_auth_mode')) {
124 $this->db->renameTableColumn(
125 'ecs_part_settings',
126 'outgoing_auth_mode',
127 'outgoing_auth_modes'
128 );
129 }
130 }

◆ step_7()

ilECSUpdateSteps8::step_7 ( )

Definition at line 132 of file ilECSUpdateSteps8.php.

132 : void
133 {
134 if (!$this->db->tableColumnExists('ecs_user_consent', 'server_id')) {
135 $this->db->addTableColumn(
136 'ecs_user_consent',
137 'server_id',
138 [
139 'type' => ilDBConstants::T_INTEGER,
140 'length' => 4,
141 'notnull' => true
142 ]
143 );
144 }
145 }

References ilDBConstants\T_INTEGER.

Field Documentation

◆ $db

ilDBInterface ilECSUpdateSteps8::$db
protected

Definition at line 28 of file ilECSUpdateSteps8.php.

Referenced by prepare().


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