ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilForumDatabaseUpdateSteps9 Class Reference
+ Inheritance diagram for ilForumDatabaseUpdateSteps9:
+ Collaboration diagram for ilForumDatabaseUpdateSteps9:

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.ilForumDatabaseUpdateSteps9.php.

Member Function Documentation

◆ prepare()

ilForumDatabaseUpdateSteps9::prepare ( ilDBInterface  $db)

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

References $db.

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

◆ step_1()

ilForumDatabaseUpdateSteps9::step_1 ( )

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

30  : void
31  {
32  if ($this->db->tableExists('frm_settings') && $this->db->tableColumnExists('frm_settings', 'thread_sorting')) {
33  $this->db->dropTableColumn('frm_settings', 'thread_sorting');
34  }
35  }

◆ step_2()

ilForumDatabaseUpdateSteps9::step_2 ( )

Definition at line 37 of file class.ilForumDatabaseUpdateSteps9.php.

37  : void
38  {
39  if ($this->db->tableExists('frm_threads') && $this->db->tableColumnExists('frm_threads', 'thread_sorting')) {
40  $this->db->dropTableColumn('frm_threads', 'thread_sorting');
41  }
42  }

Field Documentation

◆ $db

ilDBInterface ilForumDatabaseUpdateSteps9::$db
protected

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

Referenced by prepare().


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