You are here

function salesforce_api_update_6205 in Salesforce Suite 6.2

Same name and namespace in other branches
  1. 7.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/export times.

File

salesforce_api/salesforce_api.install, line 364
Installs any global tables needed for Salesforce integration.

Code

function salesforce_api_update_6205(&$sandbox) {
  $ret = array();
  db_add_field($ret, 'salesforce_object_map', 'created', array(
    'type' => 'int',
    'not null' => TRUE,
    'description' => 'The UNIX timestamp when the mapping was created.',
  ));
  db_add_field($ret, 'salesforce_object_map', 'last_import', array(
    'type' => 'int',
    'not null' => TRUE,
    'description' => 'The UNIX timestamp when the last import occurred for this item.',
  ));
  db_add_field($ret, 'salesforce_object_map', 'last_export', array(
    'type' => 'int',
    'not null' => TRUE,
    'description' => 'The UNIX timestamp when the last export occurred for this item.',
  ));
  return $ret;
}