function webform_update_2 in Webform 6.2
Same name and namespace in other branches
- 5.2 webform.install \webform_update_2()
- 5 webform.install \webform_update_2()
Schema changes 2: Added redirect_post column in webform table.
File
- ./
webform.install, line 361 - Webform module install/schema hooks.
Code
function webform_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'pgsql':
$ret[] = update_sql("ALTER TABLE {webform} ADD redirect_post int(1) UNSIGNED NOT NULL DEFAULT '0'");
break;
case 'mysqli':
case 'mysql':
$ret[] = update_sql("ALTER TABLE {webform} ADD redirect_post int(1) UNSIGNED NOT NULL DEFAULT '0' AFTER confirmation");
break;
}
return $ret;
}