You are here

function ldap_servers_update_7101 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_7101()
  2. 7 ldap_servers/ldap_servers.install \ldap_servers_update_7101()

Ldap_server table field changes.

File

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

Code

function ldap_servers_update_7101() {
  db_add_field('ldap_servers', 'allow_conflicting_drupal_accts', [
    'type' => 'int',
    'size' => 'tiny',
    'not null' => FALSE,
    'default' => 0,
  ]);
  db_add_field('ldap_servers', 'unique_persistent_attr', [
    'type' => 'varchar',
    'length' => '64',
    'not null' => FALSE,
  ]);
  db_add_field('ldap_servers', 'mail_template', [
    'type' => 'varchar',
    'length' => '255',
    'not null' => FALSE,
  ]);
  db_change_field('ldap_servers', 'ldap_to_drupal_user', 'ldap_to_drupal_user', [
    'type' => 'varchar',
    'length' => 1024,
    'not null' => FALSE,
  ]);
  db_change_field('ldap_servers', 'binddn', 'binddn', [
    'type' => 'varchar',
    'length' => 511,
  ]);
  return t('Updated LDAP Server to include "allow_conflicting_drupal_accts" and "unique_persistent_attr" fields.');
}