You are here

function ldap_servers_update_7106 in Lightweight Directory Access Protocol (LDAP) 7

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

Change ldap_servers "bind_method" field to small int.

File

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

Code

function ldap_servers_update_7106() {
  db_change_field('ldap_servers', 'bind_method', 'bind_method', array(
    'type' => 'int',
    'size' => 'small',
    'not null' => TRUE,
    'default' => 0,
  ));
  $msg = t('ldap_servers "bind_method" field changed to small int');
  return $msg ? $msg : t('No database changes made.');
}