You are here

function webform_protected_downloads_update_6003 in Webform Protected Downloads 6

File

./webform_protected_downloads.install, line 181

Code

function webform_protected_downloads_update_6003() {
  $ret = array();
  db_add_field($ret, 'wpd_node_configuration', 'access_type', array(
    'description' => 'The type of access, either 0 for one-time or 1 for repeated',
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field($ret, 'wpd_access_hashes', 'used', array(
    'description' => 'The timestamp when the hash has been last used',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ));
  return $ret;
}