You are here

function commerce_registration_install in Commerce Registration 7.3

Same name and namespace in other branches
  1. 7.2 commerce_registration.install \commerce_registration_install()

Implements hook_install().

File

./commerce_registration.install, line 66
Commerce Registration install file.

Code

function commerce_registration_install() {

  // Add the new commerce line item ID field to registrations.
  db_add_field('registration', 'lineitem_id', array(
    'description' => 'The line item associated with this registration, if any.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field('commerce_line_item', 'registrations', array(
    'description' => 'A collection of registrations attached to the line item.',
    'type' => 'text',
    'size' => 'big',
    'serialize' => TRUE,
  ));
}