function forena_schema in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.install \forena_schema()
 - 6 forena.install \forena_schema()
 - 7.5 forena.install \forena_schema()
 - 7 forena.install \forena_schema()
 - 7.2 forena.install \forena_schema()
 - 7.3 forena.install \forena_schema()
 - 7.4 forena.install \forena_schema()
 
Implementation of hook_schema
Return value
unknown
File
- ./
forena.install, line 12  - Installation api for module
 
Code
function forena_schema() {
  $schema['forena_repositories'] = array(
    'fields' => array(
      'repository' => array(
        'type' => 'varchar',
        'length' => '63',
        'not null' => TRUE,
      ),
      'title' => array(
        'type' => 'varchar',
        'length' => '63',
      ),
      'enabled' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
      'config' => array(
        'type' => 'text',
      ),
    ),
    'primary_key' => array(
      'repository',
    ),
  );
  return $schema;
}