function commerce_cardonfile_update_7205 in Commerce Card on File 7.2
Adds the order_id column to the {commerce_cardonfile} table.
File
- ./
commerce_cardonfile.install, line 223 - Installs the tables required by Commerce Card on File.
Code
function commerce_cardonfile_update_7205() {
$spec = array(
'description' => 'The {commerce_order}.order_id that originally supplied this card data, if card data was created from checkout.',
'type' => 'int',
'unsigned' => TRUE,
);
db_add_field('commerce_cardonfile', 'order_id', $spec);
db_add_index('commerce_cardonfile', 'order_id', array(
'order_id',
));
return t('Added order_id column to commerce_cardonfile table.');
}