You are here

function _connector_user_schema_1 in Connector 7

Same name and namespace in other branches
  1. 6 connector.install \_connector_user_schema_1()
1 call to _connector_user_schema_1()
connector_schema in ./connector.install
Implements hook_schema().

File

./connector.install, line 65
Database and updating for the connector module

Code

function _connector_user_schema_1() {
  return array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The id of the user',
      ),
      'primary_connection' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The primary connection for the user',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
}