You are here

function og_role_watchdog_schema in Role Watchdog 6

Same name and namespace in other branches
  1. 6.2 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_schema()
  2. 7.2 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_schema()
  3. 7 modules/og_role_watchdog/og_role_watchdog.install \og_role_watchdog_schema()

Implementation of hook_schema().

File

modules/og_role_watchdog/og_role_watchdog.install, line 11
Install file for Role watchdog.

Code

function og_role_watchdog_schema() {
  $schema['og_role_watchdog'] = array(
    'description' => t('Log of group information associated with each role change.'),
    'fields' => array(
      'hid' => array(
        'description' => t('ID of the history entry.'),
        'type' => 'int',
        'unsigned' => 1,
        'not null' => TRUE,
        'default' => 0,
      ),
      'gid' => array(
        'description' => t('Group that Role ID changed in, if og_user_roles made the change.'),
        'type' => 'int',
        'unsigned' => 1,
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'hid' => array(
        'hid',
      ),
    ),
  );
  return $schema;
}