function redirect_update_5 in Redirect 7
Same name and namespace in other branches
- 7.2 redirect.install \redirect_update_5()
Rename {redirect}.last_used to {redirect}.access.
File
- ./
redirect.install, line 208 - Install, update and uninstall functions for the redirect module.
Code
function redirect_update_5() {
if (db_field_exists('redirect', 'last_used')) {
db_drop_index('redirect', 'expires');
db_change_field('redirect', 'last_used', 'access', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The timestamp of when the redirect was last accessed.',
));
db_add_index('redirect', 'expires', array(
'type',
'access',
));
}
}