function login_history_update_8003 in Login History 8
Alters the user_agent field to allow NULL values.
File
- ./
login_history.install, line 98 - Install, update and uninstall functions for the Login History module.
Code
function login_history_update_8003() {
$spec = login_history_schema();
$field = 'user_agent';
$field_spec = $spec['login_history']['fields'][$field];
$schema = Database::getConnection()
->schema();
$schema
->changeField('login_history', $field, $field, $field_spec);
}