You are here

function node_limit_interval_schema in Node Limit 8

Same name and namespace in other branches
  1. 6 node_limit_interval/node_limit_interval.install \node_limit_interval_schema()
  2. 7 node_limit_interval/node_limit_interval.install \node_limit_interval_schema()

Implements hook_schema().

File

old/node_limit_interval/node_limit_interval.install, line 11
Installation functions for module node_limit_interval.

Code

function node_limit_interval_schema() {
  $schema['node_limit_interval'] = array(
    'description' => 'The table for applying node limits to a time interval',
    'fields' => array(
      'lid' => array(
        'description' => 'The {node_limit}.lid',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'ninterval' => array(
        'description' => 'The interval for this limit',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'unit' => array(
        'description' => 'The unit for the interval',
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'lid',
    ),
  );
  return $schema;
}