function webform_report_update_10 in Webform Report 6.2
implementation of hook_update() add options column to webform_report table
File
- ./
webform_report.install, line 88 - This file contains the functions required to install the Webform Report module
Code
function webform_report_update_10() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'pgsql':
db_add_column($ret, 'webform_report', 'options', 'text', array(
'not null' => TRUE,
));
break;
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {webform_report} ADD options text NOT NULL");
break;
}
return $ret;
}