You are here

function webform_update_5200 in Webform 5.2

Increase the size of the component instance name.

File

./webform.install, line 677

Code

function webform_update_5200() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {webform_component} CHANGE name name varchar(255) DEFAULT NULL");
      break;
    case 'pgsql':
      db_change_column($ret, 'webform_component', 'name', 'name', 'varchar(255)', array(
        'not null' => TRUE,
        'default' => "NULL",
      ));
      break;
  }
  return $ret;
}