You are here

function fb_register_schema in Drupal for Facebook 6.2

File

contrib/fb_register.install, line 16
Install file to support fb_register.module.

Code

function fb_register_schema() {
  $schema['fb_register'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'email_hash' => array(
        'type' => 'varchar',
        'length' => 255,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
    'unique keys' => array(
      'email_hash' => array(
        'email_hash',
      ),
    ),
  );
  return $schema;
}