You are here

function feeds_update_7100 in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.install \feeds_update_7100()

Rename feeds_source.batch to feeds_source.state, add slot for caching fetcher result.

File

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

Code

function feeds_update_7100() {
  $spec = array(
    'type' => 'text',
    'size' => 'big',
    'not null' => FALSE,
    'description' => 'State of import or clearing batches.',
    'serialize' => TRUE,
  );
  db_change_field('feeds_source', 'batch', 'state', $spec);
  $spec = array(
    'type' => 'text',
    'size' => 'big',
    'not null' => FALSE,
    'description' => 'Cache for fetcher result.',
    'serialize' => TRUE,
  );
  db_add_field('feeds_source', 'fetcher_result', $spec);
}