ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTest8DBUpdateSteps Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTest8DBUpdateSteps:
+ Collaboration diagram for ilTest8DBUpdateSteps:

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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 20 of file class.ilTest8DBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilTest8DBUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 24 of file class.ilTest8DBUpdateSteps.php.

References $db.

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

◆ step_1()

ilTest8DBUpdateSteps::step_1 ( )

Definition at line 29 of file class.ilTest8DBUpdateSteps.php.

29  : void
30  {
31  if ($this->db->tableColumnExists('tst_tests', 'mc_scoring')) {
32  $this->db->dropTableColumn('tst_tests', 'mc_scoring');
33  }
34  }

◆ step_2()

ilTest8DBUpdateSteps::step_2 ( )

Definition at line 36 of file class.ilTest8DBUpdateSteps.php.

References ilDBConstants\T_CLOB.

36  : void
37  {
38  $this->db->modifyTableColumn('ass_log', 'logtext', ['type' => \ilDBConstants::T_CLOB]);
39  }

Field Documentation

◆ $db

ilDBInterface ilTest8DBUpdateSteps::$db
protected

Definition at line 22 of file class.ilTest8DBUpdateSteps.php.

Referenced by prepare().


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