function invite_update_5 in Invite 5.2
Same name and namespace in other branches
- 5 invite.install \invite_update_5()
Save invite message text.
File
- ./
invite.install, line 199 - Installation file for invite module.
Code
function invite_update_5() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {invite} ADD COLUMN message TEXT NOT NULL default ''");
break;
case 'pgsql':
db_add_column($ret, 'invite', 'message', 'TEXT', array(
'not null' => TRUE,
'default' => "''",
));
break;
}
return $ret;
}