You are here

function commerce_order_update_7107 in Commerce Core 7

Add an index to the commerce_order table on uid.

File

modules/order/commerce_order.install, line 427

Code

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