You are here

function ldap_authorization_update_7100 in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7100()
  2. 7 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7100()

add 'create_consumers field to ldap_authorization table

File

ldap_authorization/ldap_authorization.install, line 122
Install, update and uninstall functions for the LDAP authorization module.

Code

function ldap_authorization_update_7100() {
  if (!db_field_exists('ldap_authorization', 'create_consumers')) {
    db_add_field('ldap_authorization', 'create_consumers', array(
      'type' => 'int',
      'size' => 'tiny',
      'not null' => TRUE,
      'default' => 0,
    ));
    return t('"create_consumers" field added to ldap_authorization table');
  }
  else {
    return t('No database changes made.');
  }
}