You are here

function commerce_product_update_7100 in Commerce Core 7

Changes the name of the 'type' index on the commerce_product table to ensure compatibility with sqlite despite http://drupal.org/node/1008128.

File

modules/product/commerce_product.install, line 201

Code

function commerce_product_update_7100() {
  if (db_index_exists('commerce_product', 'type')) {
    db_drop_index('commerce_product', 'type');
  }
  db_add_index('commerce_product', 'product_type', array(
    'type',
  ));
}