You are here

function og_notifications_schema in Organic groups 6

Same name and namespace in other branches
  1. 6.2 modules/og_notifications/og_notifications.install \og_notifications_schema()

Definition of hook_schema().

File

modules/og_notifications/og_notifications.install, line 19

Code

function og_notifications_schema() {
  $schema = array();
  $schema['og_notifications'] = array(
    'description' => t('Stores autosubscription preferences for each user.'),
    'fields' => array(
      'uid' => array(
        'description' => t("The user's {user}.uid."),
        'type' => 'int',
        'size' => 'normal',
        'not null' => TRUE,
      ),
      'autosubscribe' => array(
        'description' => t(''),
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => -1,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}