function webform_update_8 in Webform 5
Same name and namespace in other branches
- 5.2 webform.install \webform_update_8()
- 6.2 webform.install \webform_update_8()
File
- ./
webform.install, line 292
Code
function webform_update_8() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'pgsql':
$ret[] = update_sql("ALTER TABLE {webform} ADD additional_validate text DEFAULT NULL");
$ret[] = update_sql("ALTER TABLE {webform} ADD additional_submit text DEFAULT NULL");
break;
case 'mysqli':
case 'mysql':
$ret[] = update_sql("ALTER TABLE {webform} ADD additional_validate text DEFAULT NULL AFTER email_subject");
$ret[] = update_sql("ALTER TABLE {webform} ADD additional_submit text DEFAULT NULL AFTER additional_validate");
break;
}
return $ret;
}