summaryrefslogtreecommitdiffstats
path: root/vss_email.install
blob: da38855480b7afcfceeebe3b49fc99b506c58db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php

/**
 * @file
 * Install file for VSS Email
 */

/**
 * Implementation of hook_schema().
 */
function vss_email_schema() {
  $schema['vss_email'] = array(
    'description' => 'Stores items for each saved search',
    'fields' => array(
      'sid' => array(
        'description' => 'The subscription id.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE),
      'itemid' => array(
        'description' => 'Identifier of the item (can be whatever item .',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE),
    ),
    'primary key' => array('sid', 'itemid'),
  );
  return $schema;
}

/**
 * Implementation of hook_install().
 */
function vss_email_install() {
  drupal_install_schema('vss_email');
}

/**
 * Implementation of hook_uninstall().
 */
function vss_email_uninstall() {
  drupal_uninstall_schema('vss_email');
}