You are here

function uc_order_update_7000 in Ubercart 7.3

Increase the maximum length of product and line item titles.

File

uc_order/uc_order.install, line 726
Install, update and uninstall functions for the uc_order module.

Code

function uc_order_update_7000() {
  db_change_field('uc_order_products', 'title', 'title', array(
    'description' => 'The product title, from {node}.title.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
  db_change_field('uc_order_line_items', 'title', 'title', array(
    'description' => 'The label of the line item.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
}