You are here

forena.install in Forena Reports 7

Installation api for module

File

forena.install
View source
<?php

// $Id$

/**
 * @file
 * Installation api for module
 */

/**
 * Implementation of hook_schema
 *
 * @return unknown
 */
function forena_schema() {
  $schema['forena_reports'] = array(
    'fields' => array(
      'report_name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'title' => array(
        'type' => 'varchar',
        'length' => 63,
        'not null' => TRUE,
      ),
      'category' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
      'hidden' => array(
        'type' => 'int',
        'not null' => FALSE,
      ),
      'cache' => array(
        'type' => 'text',
      ),
      'modified' => array(
        'type' => 'int',
      ),
    ),
    'primary key' => array(
      'report_name',
    ),
    'indexes' => array(
      'category' => array(
        'category',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
forena_schema Implementation of hook_schema