You are here

function regcode_og_schema in Registration codes 6.2

Same name and namespace in other branches
  1. 6 regcode_og/regcode_og.install \regcode_og_schema()

Implementation of hook_schema()

File

regcode_og/regcode_og.install, line 22

Code

function regcode_og_schema() {
  $schema['regcode_og'] = array(
    'description' => t('Registration code organic group assignment information'),
    'fields' => array(
      'id' => array(
        'description' => t('Rule ID'),
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'size' => 'normal',
      ),
      'tid' => array(
        'description' => t('Term ID'),
        'type' => 'int',
        'size' => 'normal',
        'not null' => TRUE,
      ),
      'og' => array(
        'description' => t('Organic Group ID'),
        'type' => 'int',
        'unsigned' => TRUE,
        'size' => 'normal',
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}