ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 25 of file ilECSUpdateSteps8.php.

Member Function Documentation

◆ prepare()

ilECSUpdateSteps8::prepare ( ilDBInterface  $db)

Definition at line 29 of file ilECSUpdateSteps8.php.

References $db.

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

◆ step_1()

ilECSUpdateSteps8::step_1 ( )

Add consent table.

Definition at line 37 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_INTEGER.

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

◆ step_2()

ilECSUpdateSteps8::step_2 ( )

Definition at line 56 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_TEXT.

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

◆ step_3()

ilECSUpdateSteps8::step_3 ( )

Definition at line 72 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_TEXT.

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

◆ step_4()

ilECSUpdateSteps8::step_4 ( )

Definition at line 88 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_INTEGER.

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

◆ step_5()

ilECSUpdateSteps8::step_5 ( )

Definition at line 104 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_TEXT.

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

◆ step_6()

ilECSUpdateSteps8::step_6 ( )

Definition at line 120 of file ilECSUpdateSteps8.php.

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

◆ step_7()

ilECSUpdateSteps8::step_7 ( )

Definition at line 131 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_INTEGER.

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

Field Documentation

◆ $db

ilDBInterface ilECSUpdateSteps8::$db
protected

Definition at line 27 of file ilECSUpdateSteps8.php.

Referenced by prepare().


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