You are here

function ldap_servers_update_7110 in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_servers/ldap_servers.install \ldap_servers_update_7110()

Adjust group related fields to ldap_servers table.

File

ldap_servers/ldap_servers.install, line 464
Install, update and uninstall functions for the LDAP API module.

Code

function ldap_servers_update_7110() {
  if (!ldap_servers_db_field_exists('ldap_servers', 'groupFunctionalityUnused')) {
    db_add_field('ldap_servers', 'groupFunctionalityUnused', [
      'type' => 'int',
      'size' => 'tiny',
      'not null' => FALSE,
      'default' => 0,
    ]);
    $msg = t('"groupFunctionalityUnused" field added to ldap_servers table');
  }
  if (!ldap_servers_db_field_exists('ldap_servers', 'groupTestGroupDn')) {
    db_add_field('ldap_servers', 'groupTestGroupDn', [
      'type' => 'varchar',
      'length' => '255',
      'not null' => FALSE,
    ]);
    $msg = t('"groupTestGroupDn" field added to ldap_servers table');
  }
  if (!ldap_servers_db_field_exists('ldap_servers', 'groupTestGroupDnWriteable')) {
    db_add_field('ldap_servers', 'groupTestGroupDnWriteable', [
      'type' => 'varchar',
      'length' => '255',
      'not null' => FALSE,
    ]);
    $msg = t('"groupTestGroupDnWriteable" field added to ldap_servers table');
  }
}