You are here

function feeds_update_6005 in Feeds 7

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

Add callback column to feeds_schedule.

File

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

Code

function feeds_update_6005() {
  $ret = array();

  // Add a callback column and an index.
  $spec = array(
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Callback to be invoked.',
  );
  db_add_field($ret, 'feeds_schedule', 'callback', $spec);
  db_add_index($ret, 'feeds_schedule', 'id_callback', array(
    'id',
    'callback',
  ));
  return $ret;
}