You are here

function redirect_update_1 in Redirect 7

Same name and namespace in other branches
  1. 7.2 redirect.install \redirect_update_1()

Add the {redirect}.count field.

File

./redirect.install, line 156
Install, update and uninstall functions for the redirect module.

Code

function redirect_update_1() {
  $field = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'description' => 'The number of times the redirect has been used.',
  );
  db_add_field('redirect', 'count', $field);
}