You are here

function commerce_discount_update_7102 in Commerce Discount 7

Discount component price names.

@link https://drupal.org/node/2034685

Add a new column in commerce_discount table in order to display customized component price title for a discount.

File

./commerce_discount.install, line 801
Install, update, and uninstall functions for the commerce discount module.

Code

function commerce_discount_update_7102() {
  $field_schema = array(
    'description' => 'The component price title',
    'type' => 'varchar',
    'length' => 255,
    'not null' => FALSE,
  );
  db_add_field('commerce_discount', 'component_title', $field_schema);
}