You are here

function feeds_update_6011 in Feeds 7

Same name and namespace in other branches
  1. 6 feeds.install \feeds_update_6011()

Add imported flag for terms.

File

./feeds.install, line 486
Schema definitions install/update/uninstall hooks.

Code

function feeds_update_6011() {
  $ret = array();
  $schema = array(
    'description' => 'Tracks imported terms.',
    'fields' => array(
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Imported term id.',
      ),
      'id' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The id of the fields object that is the creator of this item.',
      ),
      'feed_nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => "Node id of the owner feed, if available.",
      ),
    ),
    'primary key' => array(
      'tid',
    ),
    'indexes' => array(
      'id_feed_nid' => array(
        'id',
        'feed_nid',
      ),
      'feed_nid' => array(
        'feed_nid',
      ),
    ),
  );
  db_create_table($ret, 'feeds_term_item', $schema);
  return $ret;
}