ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilItemGroupDBUpdateSteps.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\ItemGroup\Setup;
20
25{
26 protected \ilDBInterface $db;
27
28 public function prepare(\ilDBInterface $db): void
29 {
30 $this->db = $db;
31 }
32
33 public function step_1(): void
34 {
35 if (!$this->db->tableColumnExists('itgr_data', 'list_presentation')) {
36 $this->db->addTableColumn('itgr_data', 'list_presentation', array(
37 "type" => "text",
38 "length" => 10
39 ));
40 }
41 }
42
43 public function step_2()
44 {
45 if (!$this->db->tableColumnExists('itgr_data', 'tile_size')) {
46 $this->db->addTableColumn('itgr_data', 'tile_size', array(
47 "type" => "integer",
48 "notnull" => true,
49 "default" => 0,
50 "length" => 1
51 ));
52 }
53 }
54}
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: class.Agent.php:19