You are here

function _oauthconnector_connections_schema_1 in OAuth Connector 7

Same name and namespace in other branches
  1. 6 oauthconnector.install \_oauthconnector_connections_schema_1()
1 call to _oauthconnector_connections_schema_1()
oauthconnector_schema in ./oauthconnector.install
Implements hook_schema().

File

./oauthconnector.install, line 103
Install, update and uninstall functions for the OAuth Connector module.

Code

function _oauthconnector_connections_schema_1() {
  return array(
    'description' => t('Stores information about connections between OAuth tokens and Connector connections.'),
    'fields' => array(
      'tid' => array(
        'description' => 'The {oauth_common_token}.tid this connection is related to.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'cid' => array(
        'description' => t('The external id of a connection.'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'tid',
    ),
    'indexes' => array(
      'tid_cid' => array(
        'tid',
        'cid',
      ),
    ),
  );
}