ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 26 of file ilECSUpdateSteps8.php.

Member Function Documentation

◆ prepare()

ilECSUpdateSteps8::prepare ( ilDBInterface  $db)

Definition at line 30 of file ilECSUpdateSteps8.php.

References $db.

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

◆ step_1()

ilECSUpdateSteps8::step_1 ( )

Add consent table.

Definition at line 38 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_INTEGER.

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

◆ step_2()

ilECSUpdateSteps8::step_2 ( )

Definition at line 57 of file ilECSUpdateSteps8.php.

References null, and ilDBConstants\T_TEXT.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ step_3()

ilECSUpdateSteps8::step_3 ( )

Definition at line 73 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_TEXT.

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  }

◆ step_4()

ilECSUpdateSteps8::step_4 ( )

Definition at line 89 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_INTEGER.

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  [
96  'type' => ilDBConstants::T_INTEGER,
97  'notnull' => true,
98  'length' => 1,
99  'default' => 1
100  ]
101  );
102  }
103  }

◆ step_5()

ilECSUpdateSteps8::step_5 ( )

Definition at line 105 of file ilECSUpdateSteps8.php.

References ilDBConstants\T_TEXT.

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  }

◆ 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.

References ilDBConstants\T_INTEGER.

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  }

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: