You are here

function amazon_update_6012 in Amazon Product Advertisement API 6

Add new elements to the amazon_item table: Lowest price, etc.

Return value

unknown_type

File

./amazon.install, line 305

Code

function amazon_update_6012() {
  db_add_field($ret, 'amazon_item', 'lowestpriceamount', array(
    'type' => 'numeric',
  ));
  db_add_field($ret, 'amazon_item', 'lowestpricecurrencycode', array(
    'type' => 'numeric',
  ));
  db_add_field($ret, 'amazon_item', 'lowestpriceformattedprice', array(
    'type' => 'varchar',
    'length' => 32,
  ));
  db_add_field($ret, 'amazon_item', 'amazonpriceamount', array(
    'type' => 'numeric',
  ));
  db_add_field($ret, 'amazon_item', 'amazonpricecurrencycode', array(
    'type' => 'numeric',
  ));
  db_add_field($ret, 'amazon_item', 'amazonpriceformattedprice', array(
    'type' => 'varchar',
    'length' => 32,
  ));
  return $ret;
}