ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilBadgeDBUpdateSteps Class Reference
+ Inheritance diagram for ilBadgeDBUpdateSteps:
+ Collaboration diagram for ilBadgeDBUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
- 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 21 of file class.ilBadgeDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilBadgeDBUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 25 of file class.ilBadgeDBUpdateSteps.php.

References $db.

25  : void
26  {
27  $this->db = $db;
28  }

◆ step_1()

ilBadgeDBUpdateSteps::step_1 ( )

Definition at line 30 of file class.ilBadgeDBUpdateSteps.php.

30  : void
31  {
32  if (!$this->db->tableColumnExists('badge_badge', 'image_rid')) {
33  $this->db->addTableColumn(
34  'badge_badge',
35  'image_rid',
36  [
37  'type' => 'text',
38  'length' => 64,
39  'notnull' => false,
40  'default' => '',
41  ]
42  );
43  }
44  }

◆ step_2()

ilBadgeDBUpdateSteps::step_2 ( )

Definition at line 46 of file class.ilBadgeDBUpdateSteps.php.

46  : void
47  {
48  if (!$this->db->tableColumnExists('badge_image_template', 'image_rid')) {
49  $this->db->addTableColumn(
50  'badge_image_template',
51  'image_rid',
52  [
53  'type' => 'text',
54  'length' => 64,
55  'notnull' => false,
56  'default' => '',
57  ]
58  );
59  }
60  }

Field Documentation

◆ $db

ilDBInterface ilBadgeDBUpdateSteps::$db
protected

Definition at line 23 of file class.ilBadgeDBUpdateSteps.php.

Referenced by prepare().


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