You are here

function commerce_product_update_7102 in Commerce Core 7

Add an index to the commerce_product table on uid.

File

modules/product/commerce_product.install, line 234

Code

function commerce_product_update_7102() {
  if (db_index_exists('commerce_product', 'uid')) {
    db_drop_index('commerce_product', 'uid');
  }
  db_add_index('commerce_product', 'uid', array(
    'uid',
  ));
  return t('Database index added to the uid column of the commerce_product table.');
}