You are here

function webform_clear_update_7200 in Webform Clear 7.2

Set up new webform_clear table.

File

./webform_clear.install, line 32

Code

function webform_clear_update_7200() {
  $schema['webform_clear'] = array(
    'description' => t('Webform Clear data'),
    'fields' => array(
      'nid' => array(
        'description' => t('The node id'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'clear_time' => array(
        'description' => t('How many seconds after a webform submission to clear it (0 = clear immediately; -1 or no entry = do not clear).'),
        'type' => 'int',
        'unsigned' => FALSE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  db_create_table('webform_clear', $schema['webform_clear']);
}