You are here

function monolog_schema in Monolog 6

Same name and namespace in other branches
  1. 7 monolog.install \monolog_schema()

Implements hook_schema().

File

./monolog.install, line 11
Install, update, and uninstall functions for the Monolog module.

Code

function monolog_schema() {
  $schema = array();
  $schema['monolog_profile'] = array(
    'description' => 'Logging profiles for logging channels.',
    'export' => array(
      'key' => 'name',
      'identifier' => 'profile',
      'default hook' => 'default_monolog_profiles',
      'api' => array(
        'owner' => 'monolog',
        'api' => 'monolog',
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
    'fields' => array(
      'name' => array(
        'description' => 'The machine readable name of the profile.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'options' => array(
        'description' => 'Serialized storage of profile options.',
        'type' => 'blob',
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}