You are here

function commerce_autosku_update_7101 in Commerce AutoSKU 7

Change pattern field from 128 to 255 characters in commerce_autosku_patterns.

File

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

Code

function commerce_autosku_update_7101(&$sandbox) {
  $spec = array(
    'description' => 'Token replacement pattern.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  );
  db_change_field('commerce_autosku_patterns', 'pattern', 'pattern', $spec);
}