function fboauth_schema in Facebook OAuth (FBOAuth) 7
Same name and namespace in other branches
- 6 fboauth.install \fboauth_schema()
- 7.2 fboauth.install \fboauth_schema()
Implements hook_schema().
File
- ./
fboauth.install, line 36 - Provides install and update functions for the Facebook OAuth module.
Code
function fboauth_schema() {
$schema['fboauth_users'] = array(
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'fbid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
),
),
'primary key' => array(
'fbid',
),
'indexes' => array(
'uid_fbid' => array(
'uid',
'fbid',
),
),
);
return $schema;
}