◆ prepare()
◆ step_1()
| ilUser8DBUpdateSteps::step_1 |
( |
| ) |
|
Definition at line 30 of file class.ilUser8DBUpdateSteps.php.
30 : void
31 {
32 $this->db->modifyTableColumn(
33 'usr_session',
34 'session_id',
35 [
37 'length' => '256'
38 ]
39 );
40 $this->db->modifyTableColumn(
41 'usr_session_stats_raw',
42 'session_id',
43 [
45 'length' => '256'
46 ]
47 );
48 try {
49 $this->db->modifyTableColumn(
50 'usr_sess_istorage',
51 'session_id',
52 [
54 'length' => '256'
55 ]
56 );
57 }
catch (\Exception
$e) {
59 . "We could not Update the length of the column `session_id` in the table\n"
60 . "`usr_session_istorage` as the table engine is MyIsam.\n"
61 . "This step will be finished after updating to ILIAS 8.\n"
62 . "You could also lengthen the field manually after you ran the migration\n"
63 . "to migrate to InnoDB, if you require longer session_ids.";
64 global $ilLog;
66 }
67 }
References Vendor\Package\$e, $message, and ilDBConstants\T_TEXT.
◆ step_2()
| ilUser8DBUpdateSteps::step_2 |
( |
| ) |
|
Definition at line 68 of file class.ilUser8DBUpdateSteps.php.
68 : void
69 {
70 $this->db->modifyTableColumn(
71 'usr_data',
72 'time_limit_from',
73 [
75 'length' => '8'
76 ]
77 );
78 $this->db->modifyTableColumn(
79 'usr_data',
80 'time_limit_until',
81 [
83 'length' => '8'
84 ]
85 );
86 }
References ilDBConstants\T_INTEGER.
◆ step_3()
| ilUser8DBUpdateSteps::step_3 |
( |
| ) |
|
Definition at line 88 of file class.ilUser8DBUpdateSteps.php.
88 : void
89 {
90 if (!$this->db->tableExists('usr_change_email_token')) {
91 $this->db->createTable(
92 'usr_change_email_token',
93 [
94 'token' => [
95 'type' => 'text',
96 'length' => 32
97 ],
98 'new_email' => [
99 'type' => 'text',
100 'length' => 256
101 ],
102 'valid_until' => [
103 'type' => 'integer',
104 'length' => 8
105 ]
106 ]
107 );
108 }
109 }
◆ step_4()
| ilUser8DBUpdateSteps::step_4 |
( |
| ) |
|
Definition at line 111 of file class.ilUser8DBUpdateSteps.php.
111 : void
112 {
113 if ($this->db->tableColumnExists('usr_data', 'street')) {
114 $this->db->modifyTableColumn('usr_data', 'street', [
116 'length' => 512,
117 'notnull' => false
118 ]);
119 }
120 }
References ilDBConstants\T_TEXT.
◆ step_5()
| ilUser8DBUpdateSteps::step_5 |
( |
| ) |
|
Definition at line 122 of file class.ilUser8DBUpdateSteps.php.
122 : void
123 {
124 if (!$this->db->indexExistsByFields('usr_change_email_token', ['token'])) {
125 $this->db->manipulate('DELETE token1 FROM usr_change_email_token token1 '
126 . 'INNER JOIN usr_change_email_token token2 '
127 . 'WHERE token1.token = token2.token AND token1.valid_until < token2.valid_until');
128 $this->db->addPrimaryKey('usr_change_email_token', ['token']);
129 }
130 }
◆ step_6()
| ilUser8DBUpdateSteps::step_6 |
( |
| ) |
|
Definition at line 132 of file class.ilUser8DBUpdateSteps.php.
132 : void
133 {
134 if ($this->db->tableColumnExists('personal_clipboard', 'title')) {
135 $this->db->modifyTableColumn('personal_clipboard', 'title', [
137 'length' => 255,
138 'notnull' => false
139 ]);
140 }
141 }
References ilDBConstants\T_TEXT.
◆ $db
The documentation for this class was generated from the following file: