function privatemsg_update_5 in Privatemsg 5.3
Same name and namespace in other branches
- 5 privatemsg.install \privatemsg_update_5()
Add variables column for use by the subscriptions module.
File
- ./
privatemsg.install, line 259
Code
function privatemsg_update_5() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {privatemsg} ADD variables longtext");
break;
case 'pgsql':
db_add_column($ret, 'privatemsg', 'variables', 'text');
break;
}
return $ret;
}