You are here

function forena_schema in Forena Reports 6

Same name and namespace in other branches
  1. 8 forena.install \forena_schema()
  2. 6.2 forena.install \forena_schema()
  3. 7.5 forena.install \forena_schema()
  4. 7 forena.install \forena_schema()
  5. 7.2 forena.install \forena_schema()
  6. 7.3 forena.install \forena_schema()
  7. 7.4 forena.install \forena_schema()

Implementation of hook_schema

Return value

unknown

File

./forena.install, line 11
Installation api for module

Code

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;
}