You are here

function commerce_flat_rate_update_7200 in Commerce Flat Rate 7

Adds a weight column to the flat rate service table for sorting the services.

File

./commerce_flat_rate.install, line 94
Defines the database schema for flat rate shipping services.

Code

function commerce_flat_rate_update_7200() {
  $field_schema = array(
    'description' => 'The weight value used to sort the flat rate services.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 1,
    'size' => 'small',
  );
  db_add_field('commerce_flat_rate_service', 'weight', $field_schema);
  return t('Weight column added to the flat rate service table.');
}