You are here

function commerce_discount_update_7105 in Commerce Discount 7

Add a sort order column to the Commerce Discount table.

File

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

Code

function commerce_discount_update_7105() {
  $field_schema = array(
    'description' => 'The discount sort order.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 10,
    'size' => 'tiny',
  );
  db_add_field('commerce_discount', 'sort_order', $field_schema);
  return t('Sort order added to the Commerce Discount table.');
}