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

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Member Function Documentation

◆ prepare()

ILIAS\Setup\AbandonLoadDependantSessionDatabaseUpdateObjective::prepare ( ilDBInterface  $db)

◆ step_1()

ILIAS\Setup\AbandonLoadDependantSessionDatabaseUpdateObjective::step_1 ( )

Definition at line 35 of file AbandonLoadDependantSessionDatabaseUpdateObjective.php.

35  : void
36  {
37  $this->db->manipulate(
38  'DELETE FROM settings WHERE ' . $this->db->in(
39  'keyword',
40  [
41  'session_handling_type',
42  'session_max_count',
43  'session_min_idle',
44  'session_max_idle',
45  'session_max_idle_after_first_request'
46  ]
47  )
48  );
49 
50  if ($this->db->tableExists('usr_session_log')) {
51  $this->db->dropTable('usr_session_log', false);
52  }
53 
54  if ($this->db->tableColumnExists('usr_session_stats', 'max_sessions')) {
55  $this->db->dropTableColumn('usr_session_stats', 'max_sessions');
56  }
57 
58  if ($this->db->tableColumnExists('usr_session_stats', 'closed_limit')) {
59  $this->db->dropTableColumn('usr_session_stats', 'closed_limit');
60  }
61 
62  if ($this->db->tableColumnExists('usr_session_stats', 'closed_idle')) {
63  $this->db->dropTableColumn('usr_session_stats', 'closed_idle');
64  }
65 
66  if ($this->db->tableColumnExists('usr_session_stats', 'closed_idle_first')) {
67  $this->db->dropTableColumn('usr_session_stats', 'closed_idle_first');
68  }
69  }

Field Documentation

◆ $db

ilDBInterface ILIAS\Setup\AbandonLoadDependantSessionDatabaseUpdateObjective::$db
protected

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