function webform_update_7 in Webform 5
Same name and namespace in other branches
- 5.2 webform.install \webform_update_7()
- 6.2 webform.install \webform_update_7()
File
- ./
webform.install, line 273
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;
}