function heartbeat_update_7010 in Heartbeat 7
Removing fields from D6 branch, replacing some things by ctools export.
File
- ./
heartbeat.install, line 357 - Installation file for the heartbeat module. @author Jochen Stals - Menhir - www.menhir.be
Code
function heartbeat_update_7010() {
// Type, export_type, disabled, and some others are taken over by ctools.
db_drop_field('heartbeat_messages', 'custom');
db_drop_field('heartbeat_messages', 'disabled');
db_change_field('heartbeat_messages', 'variables', 'variables', array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
));
db_change_field('heartbeat_messages', 'concat_args', 'concat_args', array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
));
db_change_field('heartbeat_messages', 'attachments', 'attachments', array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
));
if (!db_field_exists('heartbeat_messages', 'group_type')) {
db_add_field('heartbeat_messages', 'group_type', array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
'default' => 'single',
'description' => t('The group type of the template'),
));
}
if (!db_table_exists('heartbeat_streams')) {
$schema = _heartbeat_update_7010();
db_create_table('heartbeat_streams', $schema['heartbeat_streams']);
}
db_drop_field('heartbeat_activity', 'message');
db_drop_field('heartbeat_activity', 'message_concat');
}