You are here

function sf_import_schema in Salesforce Suite 6.2

Same name and namespace in other branches
  1. 7.2 sf_import/sf_import.install \sf_import_schema()

Implements hook_schema().

File

sf_import/sf_import.install, line 10
Install functions for Salesforce Import

Code

function sf_import_schema() {
  $schema['sf_import_queue'] = array(
    'description' => t('Contains data for importing Salesforce records'),
    'fields' => array(
      'sfid' => array(
        'description' => t('The Salesforce ID of an updated object'),
        'type' => 'varchar',
        'length' => '32',
        'not null' => TRUE,
      ),
      'time' => array(
        'description' => t('The timestamp that this object was imported'),
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'fieldmap' => array(
        'description' => t('The fieldmap to use for importing'),
        'type' => 'varchar',
        'length' => '64',
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'sfid' => array(
        'sfid',
      ),
      'fieldmap' => array(
        'fieldmap',
      ),
    ),
    'primary key' => array(
      'sfid',
    ),
  );
  return $schema;
}