function activity_update_7300 in Activity 7
Upgrade from Drupal 6 to Drupal 7
File
- ./
activity.install, line 262
Code
function activity_update_7300() {
db_query("UPDATE {activity} SET type = CONCAT(type, '_', op)");
drupal_set_message(t('Updated the {activity}.type field by combining it with the op field. In the event that this doesn\'t map properly for some activities, the op field remains for historical purposes only'), 'warning');
$new_fields = array(
'argument1' => array(
'description' => 'Serialized value of first argument passed to the actions callback',
'type' => 'text',
'size' => 'big',
'default' => NULL,
),
'argument2' => array(
'description' => 'Serialized value of second argument passed to the actions callback',
'type' => 'text',
'size' => 'big',
'default' => NULL,
),
);
foreach ($new_fields as $field_name => $field_def) {
db_add_field('activity', $field_name, $field_def);
}
}