ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11 Class Reference
+ Inheritance diagram for ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11:
+ Collaboration diagram for ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 Create new export file table. More...
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 27 of file ProgressBlockUpdateSteps11.php.

Member Function Documentation

◆ prepare()

ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::prepare ( ilDBInterface  $db)

◆ step_1()

ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::step_1 ( )

Create new export file table.

Definition at line 39 of file ProgressBlockUpdateSteps11.php.

39 : void
40 {
41 if ($this->db->tableExists('ut_progress_block')) {
42 return;
43 }
44 $this->db->createTable('ut_progress_block', [
45 'obj_id' => [
46 'type' => ilDBConstants::T_TEXT,
47 'length' => 4,
48 'default' => 0,
49 'notnull' => true
50 ],
51 'show_block' => [
53 'length' => 1,
54 'default' => 0,
55 'notnull' => true
56 ]
57 ]);
58 $this->db->addPrimaryKey('ut_progress_block', ['obj_id']);
59 }

References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.

Field Documentation

◆ $db

ilDBInterface ILIAS\Tracking\Setup\ProgressBlockUpdateSteps11::$db
protected

The documentation for this class was generated from the following file: