You are here

function parser_common_syndication_schema in FeedAPI 6

Implementation of hook_schema().

File

parser_common_syndication/parser_common_syndication.install, line 11
Adds it to the content-type configuration

Code

function parser_common_syndication_schema() {
  $schema['parser_common_syndication'] = array(
    'fields' => array(
      'url' => array(
        'description' => t('The MD5 hash of feed URL'),
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => '32',
      ),
      'etag' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
      'last_modified' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'url',
    ),
  );
  return $schema;
}