You are here

function feedapi_update_10 in FeedAPI 5

File

./feedapi.install, line 286

Code

function feedapi_update_10() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {feedapi} CHANGE url url TEXT");
      $ret[] = update_sql("ALTER TABLE {feedapi} CHANGE link link TEXT");
      break;
    case 'pgsql':
      db_change_column($ret, 'feedapi', 'url', 'url', 'text', array(
        'default' => "",
        'not null' => TRUE,
      ));
      db_change_column($ret, 'feedapi', 'link', 'link', 'text', array(
        'default' => "",
        'not null' => TRUE,
      ));
      break;
  }
  return $ret;
}