You are here

function poll_update_7002 in Drupal 7

Add timestamp field to {poll_vote}.

File

modules/poll/poll.install, line 179
Install, update and uninstall functions for the poll module.

Code

function poll_update_7002() {
  $field = array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('poll_vote', 'timestamp', $field);
}