You are here

function flickr_schema in Flickr 7

Same name and namespace in other branches
  1. 6 flickr.install \flickr_schema()

Implements hook_schema().

File

./flickr.install, line 69
The Flickr database schema and uninstall hook.

Code

function flickr_schema() {
  $schema['flickr_users'] = array(
    'description' => 'Connects Drupal users to their Flickr accounts.',
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => 'Primary Key: Drupal user ID',
      ),
      'nsid' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => 'Flickr NSID',
      ),
      'identifier' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => 'Flickr identifier',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}