You are here

function rate_expiration_schema in Rate 7

Same name and namespace in other branches
  1. 6.2 expiration/rate_expiration.install \rate_expiration_schema()

Implements hook_schema().

File

expiration/rate_expiration.install, line 11
Installation/Uninstallation functions for rate expiration module.

Code

function rate_expiration_schema() {
  $schema = array();
  $schema['rate_expiration'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'widget_name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'start' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'end' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
      'widget_name',
    ),
  );
  return $schema;
}