Skip to content

Commit

Permalink
Calendar: add indices (31608)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed May 5, 2023
1 parent 1f77471 commit 3a18fde
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup/sql/7_hotfixes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1689,3 +1689,12 @@ function migrateData($field_id, $data) : array
$ilDB->addIndex('webr_items', array('webr_id'), 'i3');
}
?>
<#99>
<?php
if (!$ilDB->indexExistsByFields('cal_entries', array('starta'))) {
$ilDB->addIndex('cal_entries', array('starta'), 'i3');
}
if (!$ilDB->indexExistsByFields('cal_entries', array('enda'))) {
$ilDB->addIndex('cal_entries', array('enda'), 'i4');
}
?>

1 comment on commit 3a18fde

@schmitz-ilias
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.