ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration Class Reference
+ Inheritance diagram for ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration:
+ Collaboration diagram for ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration:

Public Member Functions

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

Private Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 26 of file LDAPBindPasswordFieldMigration.php.

Member Function Documentation

◆ prepare()

ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration::prepare ( ilDBInterface  $db)

◆ step_1()

ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration::step_1 ( )

Definition at line 35 of file LDAPBindPasswordFieldMigration.php.

35 : void
36 {
37 if ($this->db->tableColumnExists('ldap_server_settings', 'bind_pass')) {
38 $this->db->modifyTableColumn(
39 'ldap_server_settings',
40 'bind_pass',
41 [
42 'type' => 'text',
43 'length' => 100,
44 'notnull' => false,
45 'default' => null
46 ]
47 );
48 }
49 if ($this->db->tableColumnExists('ldap_server_settings', 'role_bind_pass')) {
50 $this->db->modifyTableColumn(
51 'ldap_server_settings',
52 'role_bind_pass',
53 [
54 'type' => 'text',
55 'length' => 100,
56 'notnull' => false,
57 'default' => null
58 ]
59 );
60 }
61 }

Field Documentation

◆ $db

ilDBInterface ILIAS\LDAP\Setup\LDAPBindPasswordFieldMigration::$db
private

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