You are here

function ldap_authorization_update_7104 in Lightweight Directory Access Protocol (LDAP) 7

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

change derive_from_attr_attr and derive_from_entry fields to text instead of varchar 2555 applied second time because beta6 and 7 were wrong.

File

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

Code

function ldap_authorization_update_7104() {
  foreach (array(
    'derive_from_dn_attr',
    'derive_from_attr_attr',
    'derive_from_entry_entries',
  ) as $field_name) {
    db_change_field('ldap_authorization', $field_name, $field_name, array(
      'type' => 'text',
      'not null' => FALSE,
    ));
  }
}