You are here

function feeds_atom_schema in Feeds Atom 6

Same name and namespace in other branches
  1. 7 feeds_atom.install \feeds_atom_schema()

Implementation of hook_schema().

File

./feeds_atom.install, line 18
Install and uninstall schema and functions for the feeds_atom module.

Code

function feeds_atom_schema() {
  $schema['feeds_atom_file_import'] = array(
    'fields' => array(
      'fid' => array(
        'description' => t('The file id that we have imported.'),
        'type' => 'int',
        'not null' => TRUE,
      ),
      'sha1' => array(
        'description' => t('sha1 hash of this file.'),
        'type' => 'varchar',
        'length' => '40',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'fid',
    ),
  );
  return $schema;
}