You are here

function commerce_order_update_7105 in Commerce Core 7

Add an index to the commerce_order_revision table on order_id.

File

modules/order/commerce_order.install, line 400

Code

function commerce_order_update_7105() {
  if (db_index_exists('commerce_order_revision', 'order_id')) {
    db_drop_index('commerce_order_revision', 'order_id');
  }
  db_add_index('commerce_order_revision', 'order_id', array(
    'order_id',
  ));
}