You are here

function feedapi_update_9 in FeedAPI 5

File

./feedapi.install, line 270

Code

function feedapi_update_9() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {feedapi} ADD skip TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER half_done");
      $ret[] = update_sql("ALTER TABLE {feedapi} ADD INDEX ( skip ) ;");
      break;
    case 'pgsql':
      db_add_column($ret, 'feedapi', 'skip', 'smallint', array(
        'not null' => TRUE,
        'default' => 0,
      ));
      $ret[] = update_sql("CREATE INDEX {feedapi}_skip_idx ON {feedapi} (skip)");
      break;
  }
  return $ret;
}