function heartbeat_update_4 in Heartbeat 6.4
Update to branch 4.x
Return value
sql statements array
File
- ./
heartbeat.install, line 355 - Installation file for the heartbeat module. @author Jochen Stals - Menhir - www.menhir.be
Code
function heartbeat_update_4() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("RENAME TABLE {hb_activity} TO {heartbeat_activity}");
$ret[] = update_sql("ALTER TABLE {heartbeat_messages} ADD custom TINYINT NOT NULL DEFAULT '0' AFTER perms");
$ret[] = update_sql("ALTER TABLE {heartbeat_messages} DROP module");
$ret[] = update_sql("ALTER TABLE {heartbeat_messages} DROP message_type");
$ret[] = update_sql("ALTER TABLE {heartbeat_messages} ADD attachments BLOB NULL AFTER variables");
break;
}
return $ret;
}