You are here

function commerce_coupon_usage_update_7001 in Commerce Coupon 7.2

Install commerce_coupon_usage_transaction table.

File

modules/usage/commerce_coupon_usage.install, line 78
Installation procedure for Commerce Coupon Usage.

Code

function commerce_coupon_usage_update_7001() {

  // Install the usage transaction table.
  $table = drupal_get_schema_unprocessed('commerce_coupon_usage', 'commerce_coupon_usage_transaction');
  if (!db_table_exists('commerce_coupon_usage_transaction')) {
    db_create_table('commerce_coupon_usage_transaction', $table);
  }

  // Rebuild schema.
  drupal_get_complete_schema(TRUE);
}