You are here

function ldap_servers_update_7101 in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.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 118
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', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => FALSE,
    'default' => 0,
  ));
  db_add_field('ldap_servers', 'unique_persistent_attr', array(
    'type' => 'varchar',
    'length' => '64',
    'not null' => FALSE,
  ));
  db_add_field('ldap_servers', 'mail_template', array(
    'type' => 'varchar',
    'length' => '255',
    'not null' => FALSE,
  ));
  db_change_field('ldap_servers', 'ldap_to_drupal_user', 'ldap_to_drupal_user', array(
    'type' => 'varchar',
    'length' => 1024,
    'not null' => FALSE,
  ));
  db_change_field('ldap_servers', 'binddn', 'binddn', array(
    'type' => 'varchar',
    'length' => 511,
  ));
  return t('Updated LDAP Server to include "allow_conflicting_drupal_accts" and "unique_persistent_attr" fields.');
}