ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilScorm2004DatabaseUpdateSteps Class Reference
+ Inheritance diagram for ilScorm2004DatabaseUpdateSteps:
+ Collaboration diagram for ilScorm2004DatabaseUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
 step_3 ()
 
- 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.ilScorm2004DatabaseUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilScorm2004DatabaseUpdateSteps::prepare ( ilDBInterface  $db)

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

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

References $db.

◆ step_1()

ilScorm2004DatabaseUpdateSteps::step_1 ( )

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

30 : void
31 {
32 $this->db->modifyTableColumn("cmi_interaction", "c_timestamp", array("type" => "text", "length" => 40, "notnull" => false, 'default' => null));
33 }

◆ step_2()

ilScorm2004DatabaseUpdateSteps::step_2 ( )

Definition at line 35 of file class.ilScorm2004DatabaseUpdateSteps.php.

35 : void
36 {
37 $this->db->modifyTableColumn("cp_dependency", "resourceid", array("type" => "text", "length" => 200, "notnull" => false, 'default' => null));
38 }

◆ step_3()

ilScorm2004DatabaseUpdateSteps::step_3 ( )

Definition at line 40 of file class.ilScorm2004DatabaseUpdateSteps.php.

40 : void
41 {
42 if (!$this->db->indexExistsByFields('sahs_user', ['user_id'])) {
43 $this->db->addIndex('sahs_user', ['user_id'], 'i1');
44 }
45 }

Field Documentation

◆ $db

ilDBInterface ilScorm2004DatabaseUpdateSteps::$db
protected

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

Referenced by prepare().


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