You are here

function commerce_payment_update_7100 in Commerce Core 7

Add an index to the commerce_payment_transaction_revision table on transaction_id.

File

modules/payment/commerce_payment.install, line 259
Installation functions for Drupal Commerce Payment.

Code

function commerce_payment_update_7100() {
  if (db_index_exists('commerce_payment_transaction_revision', 'transaction_id')) {
    db_drop_index('commerce_payment_transaction_revision', 'transaction_id');
  }
  db_add_index('commerce_payment_transaction_revision', 'transaction_id', array(
    'transaction_id',
  ));
}