function salesforce_api_update_6205 in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 salesforce_api/salesforce_api.install \salesforce_api_update_6205()
Alter {salesforce_object_map} to add last_import and last_export fields. @todo: Update existing items in {salesforce_object_map} with best guesses of last import and last export times.
File
- salesforce_api/
salesforce_api.install, line 411 - Installs any global tables needed for Salesforce integration.
Code
function salesforce_api_update_6205(&$sandbox) {
db_add_field('salesforce_object_map', 'created', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The Unix timestamp when the mapping was created.',
));
db_add_field('salesforce_object_map', 'last_import', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The Unix timestamp when the last import occurred for this item.',
));
db_add_field('salesforce_object_map', 'last_export', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The Unix timestamp when the last export occurred for this item.',
));
return t('Updated the {salesforce_object_map} table to track object created, import, and export times.');
}