You are here

salesforce_api.install in Salesforce Suite 5.2

Installs any global tables needed for Salesforce integration.

File

salesforce_api/salesforce_api.install
View source
<?php

/**
 * @file
 * Installs any global tables needed for Salesforce integration.
 */

/**
 * Implementation of hook_install().
 */
function salesforce_api_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {salesforce_ids} (\n        drupal_type varchar(127) NOT NULL default '',\n        drupal_id varchar(32) NOT NULL default '',\n        sfid varchar(18) NOT NULL default '',\n        fieldmap int unsigned NOT NULL default '0',\n        PRIMARY KEY (drupal_type, drupal_id)\n      ) /*!40100 DEFAULT CHARACTER SET utf8 */");
      break;
    case 'pgsql':
      break;
  }
}

Functions

Namesort descending Description
salesforce_api_install Implementation of hook_install().