You are here

function mailchimp_ecommerce_update_7003 in Mailchimp E-Commerce 7

Rename 'mailchimp_ecommerce' table to 'mailchimp_ecommerce_customer'.

File

./mailchimp_ecommerce.install, line 72
Mailchimp eCommerce install and update hooks.

Code

function mailchimp_ecommerce_update_7003() {

  // At one point the schema defined a table named 'mailchimp_ecommerce',
  // which should have been named 'mailchimp_ecommerce_customer'.
  // The table is renamed here, if it exists.
  if (db_table_exists('mailchimp_ecommerce')) {
    db_rename_table('mailchimp_ecommerce', 'mailchimp_ecommerce_customer');
  }
}