You are here

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

add bind_method field to ldap_servers table

File

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

Code

function ldap_servers_update_7102() {
  if (!db_field_exists('ldap_servers', 'bind_method')) {
    db_add_field('ldap_servers', 'bind_method', array(
      'type' => 'int',
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 0,
    ));
    $msg = t('"bind_method" field added to ldap_servers table');
  }
  return $msg ? $msg : t('No database changes made.');
}