function commerce_registration_schema_alter in Commerce Registration 7.3
Same name and namespace in other branches
- 7 commerce_registration.install \commerce_registration_schema_alter()
- 7.2 commerce_registration.install \commerce_registration_schema_alter()
Implements hook_schema_alter().
File
- ./
commerce_registration.install, line 48 - Commerce Registration install file.
Code
function commerce_registration_schema_alter(&$schema) {
$schema['registration']['fields']['lineitem_id'] = array(
'description' => 'The line item associated with this registration, if any.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
$schema['commerce_line_item']['fields']['registrations'] = array(
'description' => 'A collection of registrations attached to the line item.',
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
);
}