Initial commit
[sandbox/stevem/1838516.git] / vss_email.install
1 <?php
2
3 /**
4 * @file
5 * Install file for VSS Email
6 */
7
8 /**
9 * Implementation of hook_schema().
10 */
11 function vss_email_schema() {
12 $schema['vss_email'] = array(
13 'description' => 'Stores items for each saved search',
14 'fields' => array(
15 'sid' => array(
16 'description' => 'The subscription id.',
17 'type' => 'int',
18 'unsigned' => TRUE,
19 'not null' => TRUE),
20 'itemid' => array(
21 'description' => 'Identifier of the item (can be whatever item .',
22 'type' => 'int',
23 'unsigned' => TRUE,
24 'not null' => TRUE),
25 ),
26 'primary key' => array('sid', 'itemid'),
27 );
28 return $schema;
29 }
30
31 /**
32 * Implementation of hook_install().
33 */
34 function vss_email_install() {
35 drupal_install_schema('vss_email');
36 }
37
38 /**
39 * Implementation of hook_uninstall().
40 */
41 function vss_email_uninstall() {
42 drupal_uninstall_schema('vss_email');
43 }