ILIAS  release_8 Revision v8.25
class.ilTest8DBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21{
22 protected ilDBInterface $db;
23
24 public function prepare(ilDBInterface $db): void
25 {
26 $this->db = $db;
27 }
28
29 public function step_1(): void
30 {
31 if ($this->db->tableColumnExists('tst_tests', 'mc_scoring')) {
32 $this->db->dropTableColumn('tst_tests', 'mc_scoring');
33 }
34 }
35
36 public function step_2(): void
37 {
38 $this->db->modifyTableColumn('ass_log', 'logtext', ['type' => \ilDBConstants::T_CLOB]);
39 }
40}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...