You are here

function ldap_authorization_update_7103 in Lightweight Directory Access Protocol (LDAP) 7.2

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

Change derive_from_attr_attr and derive_from_entry fields to text instead of varchar 2555.

File

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

Code

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