You are here

function webform_update_7 in Webform 5.2

Same name and namespace in other branches
  1. 5 webform.install \webform_update_7()
  2. 6.2 webform.install \webform_update_7()

Allow much larger default values for components.

File

./webform.install, line 324

Code

function webform_update_7() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_change_column($ret, 'webform_component', 'value', 'value', 'TEXT', array(
        'not null' => FALSE,
        'default' => 'NULL',
      ));
      break;
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql('ALTER TABLE {webform_component} CHANGE value value TEXT NULL DEFAULT NULL');
      break;
  }
  return $ret;
}