function uc_cart_update_6200 in Ubercart 6.2
Add an autoincrement primary key to the uc_cart_products table
File
- uc_cart/
uc_cart.install, line 138 - Install hooks for uc_cart.module.
Code
function uc_cart_update_6200() {
$ret = array();
db_add_field($ret, 'uc_cart_products', 'cart_item_id', array(
'description' => 'Unique identifier for cart item.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
), array(
'primary key' => array(
'cart_item_id',
),
));
return $ret;
}