You are here

function node_limit_og_schema in Node Limit 6

Implementation of hook_schema().

File

node_limit_og/node_limit_og.install, line 18
Installation functions for module node_limit_og.

Code

function node_limit_og_schema() {
  $schema['node_limit_og'] = array(
    'description' => t('The table for applying node limits to a time interval'),
    'fields' => array(
      'lid' => array(
        'description' => t('The {node_limit}.lid'),
        'type' => 'int',
        'not null' => TRUE,
      ),
      'ogid' => array(
        'description' => t('The {og}.nid for this limit'),
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'lid',
    ),
  );
  return $schema;
}