19declare(strict_types=1);
32 $this->db->modifyTableColumn(
40 $this->db->modifyTableColumn(
41 'usr_session_stats_raw',
49 $this->db->modifyTableColumn(
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.";
70 $this->db->modifyTableColumn(
78 $this->db->modifyTableColumn(
90 if (!$this->db->tableExists(
'usr_change_email_token')) {
91 $this->db->createTable(
92 'usr_change_email_token',
113 if ($this->db->tableColumnExists(
'usr_data',
'street')) {
114 $this->db->modifyTableColumn(
'usr_data',
'street', [
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']);
134 if ($this->db->tableColumnExists(
'personal_clipboard',
'title')) {
135 $this->db->modifyTableColumn(
'personal_clipboard',
'title', [
prepare(ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...