function ldap_servers_install_update_schema in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_servers/ldap_servers.install \ldap_servers_install_update_schema()
1 call to ldap_servers_install_update_schema()
- ldap_servers_update_7201 in ldap_servers/
ldap_servers.install - Upgrade as much as feasible for 7.1 to 7.2 branch.
File
- ldap_servers/
ldap_servers.install, line 880 - Install, update and uninstall functions for the LDAP API module.
Code
function ldap_servers_install_update_schema($schema, &$change_log) {
foreach ($schema as $table_name => $table_schema) {
foreach ($table_schema['fields'] as $field_name => $field_schema) {
if (!ldap_servers_db_field_exists($table_name, $field_name)) {
db_add_field($table_name, $field_name, $field_schema);
$change_log[] = t("!field_name field added to !table_name table", [
'!field_name' => $field_name,
'!table_name' => $table_name,
]);
}
}
}
}