You are here

function fb_user_schema in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_user.install \fb_user_schema()
  2. 6.2 fb_user.install \fb_user_schema()
  3. 7.4 fb_user.install \fb_user_schema()

File

./fb_user.install, line 42
Install file for fb_user.module.

Code

function fb_user_schema() {

  // Note fb_user_app table has been moved to fb_user_app.module.
  $schema['fb_user'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'fbu' => array(
        // http://forum.developers.facebook.net/viewtopic.php?pid=4676
        'type' => 'int',
        'size' => 'big',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
    'unique keys' => array(
      'fbu' => array(
        'fbu',
      ),
    ),
  );
  return $schema;
}