You are here

function commerce_autosku_update_7102 in Commerce AutoSKU 7

Change product_type field from 55 to 32 characters in commerce_autosku_patterns.

File

./commerce_autosku.install, line 63
Install and update hooks for commerce_autosku

Code

function commerce_autosku_update_7102(&$sandbox) {
  $spec = array(
    'description' => 'Product type identifier.',
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
  );
  db_change_field('commerce_autosku_patterns', 'product_type', 'product_type', $spec);
}