You are here

function amazon_update_6015 in Amazon Product Advertisement API 6

Amazon has stopped providing customer review data; now we only get an iframe link where Amazon will provide the data, so we need to drop the table that was used for customer reviews and add the new iframe link.

File

./amazon.install, line 343

Code

function amazon_update_6015() {
  db_add_field($ret, 'amazon_item', 'customerreviews_iframe', array(
    'type' => 'varchar',
    'length' => 255,
  ));
  db_drop_table($ret, 'amazon_item_customer_review');
  $ret[] = update_sql('UPDATE {amazon_item} SET timestamp = 0;');
  return $ret;
}