function ldap_authorization_update_7101 in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7101()
- 7 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7101()
Add derive_from_attr_use_first_attr field to ldap_authorization table.
File
- ldap_authorization/
ldap_authorization.install, line 141 - Install, update and uninstall functions for the LDAP authorization module.
Code
function ldap_authorization_update_7101() {
if (!db_field_exists('ldap_authorization', 'derive_from_attr_use_first_attr')) {
db_add_field('ldap_authorization', 'derive_from_attr_use_first_attr', [
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
]);
return t('"derive_from_attr_use_first_attr" field added to ldap_authorization table');
}
else {
return t('No database changes made.');
}
}