18 declare(strict_types=1);
25 protected \ilDBInterface
$db;
35 if (!$this->db->indexExistsByFields(
'cal_entries', [
'starta'])) {
36 $this->db->addIndex(
'cal_entries', [
'starta'],
'i3');
38 if (!$this->db->indexExistsByFields(
'cal_entries', [
'enda'])) {
39 $this->db->addIndex(
'cal_entries', [
'enda'],
'i4');
46 if($this->db->tableExists(
'cal_entries')
47 && $this->db->tableColumnExists(
'cal_entries',
'is_milestone')) {
48 $this->db->dropTableColumn(
'cal_entries',
'is_milestone');
51 if($this->db->tableExists(
'cal_entries')
52 && $this->db->tableColumnExists(
'cal_entries',
'completion')) {
53 $this->db->dropTableColumn(
'cal_entries',
'completion');
56 if($this->db->tableExists(
'cal_entry_responsible')) {
57 $this->db->dropTable(
'cal_entry_responsible');
60 $query =
'delete from settings where ' .
63 $this->db->manipulate($query);
prepare(\ilDBInterface $db)
Prepare the execution of the steps.