You are here

function webform_update_7315 in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.install \webform_update_7315()

Add column for timestamp of last requested CSV download.

File

./webform.install, line 1112
Webform module install/schema hooks.

Code

function webform_update_7315() {
  if (!db_field_exists('webform_last_download', 'requested')) {
    db_add_field('webform_last_download', 'requested', array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}