/[drupal]/contributions/modules/mail_api/mail_api.install
ViewVC logotype

Diff of /contributions/modules/mail_api/mail_api.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9.2.1, Wed Jan 7 21:28:24 2009 UTC revision 1.9.2.2, Thu May 14 18:39:03 2009 UTC
# Line 0  Line 1 
1    <?php
2    // $Id$
3    
4    /**
5     * @file
6     * Install file for Mail API
7     *
8     */
9    
10    
11    
12    function mail_api_schema() {
13      $schema['mail_api_servers'] = array(
14        'fields' => array(
15          'id' => array('type' => 'serial', 'not null' => TRUE),
16          'name' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''),
17          'protocol' => array('type' => 'text', 'not null' => TRUE, 'description' => 'Protocol ID'),
18          'protocol_module' => array('type' => 'text', 'not null' => TRUE),
19          'hostname' => array('type' => 'text'),
20          'port' => array('type' => 'int', 'unsigned' => TRUE),
21          'encryption' => array('type' => 'text', 'not null' => TRUE),
22          'domain' => array('type' => 'text'),
23          'folder_prefix' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
24          'hide_folder_prefix' => array('type' => 'int', 'size' => 'tiny', 'default' => 0),
25          'inbox_folder' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
26          'trash_folder' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
27          'sent_folder' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
28          'drafts_folder' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
29          'outbox_folder' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
30          'options' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
31          'login_suffix' => array('type' => 'varchar', 'length' => 128, 'default' => ''),
32          'suspended' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'),
33          'default' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'),
34    
35        ),
36        'indexes' => array(
37          'id' => array('id'),
38        ),
39        'primary key' => array('id'),
40      );
41    
42      /*
43      $schema['mail_api_tag_cache'] = array(
44        'fields' => array(
45          'tid' => array('type' => 'serial', 'not null' => TRUE),
46          'uid' => array('type' => 'int', 'unsigned' => TRUE),
47          'name' => array('type' => 'text', 'not null' => TRUE),
48        ),
49        'indexes' => array(
50          'tid' => array('tid'),
51        ),
52        'primary key' => array('tid'),
53      );
54      */
55    
56      /*
57      $schema['mail_api_folder_cache'] = array(
58        'fields' => array(
59          'fid' => array('type' => 'serial', 'not null' => TRUE),
60          'uid' => array('type' => 'int', 'not null' => TRUE, 'unsigned' => TRUE),
61          'path' => array('type' => 'text'),
62          'quota' => array('type' => 'int', 'unsigned' => TRUE),
63          'quota_used' => array('type' => 'int', 'unsigned' => TRUE),
64          'num_messages' => array('type' => 'int', 'unsigned' => TRUE),
65          'num_recent' => array('type' => 'int', 'unsigned' => TRUE),
66        ),
67        'indexes' => array(
68          'fid' => array('fid'),
69          'uid' => array('uid'),
70        ),
71        'primary key' => array('fid'),
72      );
73      */
74    
75      return $schema;
76    }
77    
78    function mail_api_install() {
79      drupal_install_schema('mail_api');
80    }
81    
82    function mail_api_uninstall() {
83      drupal_uninstall_schema('mail_api');
84    }

Legend:
Removed from v.1.9.2.1  
changed lines
  Added in v.1.9.2.2

  ViewVC Help
Powered by ViewVC 1.1.2