You are here

function feeds_tamper_update_7001 in Feeds Tamper 7

Add weight field to feeds_tamper table.

File

./feeds_tamper.install, line 93
Schema definitions install/update/uninstall hooks.

Code

function feeds_tamper_update_7001(&$sandbox) {
  if (db_field_exists('feeds_tamper', 'weight')) {
    return;
  }
  $spec = array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'unsigned' => TRUE,
    'description' => 'The weight of a plugin instance. Plugins are executed in order.',
  );
  db_add_field('feeds_tamper', 'weight', $spec);
}