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

Diff of /contributions/modules/mlm/mlm.install

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

revision 1.12, Sun Feb 22 18:39:45 2009 UTC revision 1.13, Sun Aug 23 23:06:27 2009 UTC
# Line 1  Line 1 
1  <?php // $Id: mlm.install,v 1.11 2008/12/17 21:37:18 vauxia Exp $  <?php // $Id: mlm.install,v 1.12 2009/02/22 18:39:45 vauxia Exp $
2    
3  /**  /**
4   * @file   * @file
# Line 99  function mlm_schema() { Line 99  function mlm_schema() {
99      ),      ),
100      'primary key' => array('slid'),      'primary key' => array('slid'),
101    );    );
102      $schema['mlm_text'] = array(
103        'description' => t('Mailing list help text and confirmations.'),
104        'fields' => array(
105          'mtid' => array(
106            'type' => 'serial',
107            'unsigned' => TRUE,
108          ),
109          'name' => array(
110            'type' => 'varchar',
111            'length' => 48,
112          ),
113          'list_type' => array(
114            'type' => 'varchar',
115            'length' => 30,
116          ),
117          'lid' => array(
118            'type' => 'int',
119            'unsigned' => TRUE,
120          ),
121          'subject' => array(
122            'type' => 'varchar',
123            'length' => 200,
124          ),
125          'body' => array(
126            'type' => 'text',
127          ),
128          'format' => array(
129            'type' => 'int',
130            'size' => 'tiny',
131          ),
132        ),
133        'primary key' => array('mtid'),
134      );
135    
136    $schema['mlm_thread'] = array(    $schema['mlm_thread'] = array(
137      'description' => t('Mailing list discussion thread'),      'description' => t('Mailing list discussion thread'),
138      'fields' => array(      'fields' => array(
# Line 335  function mlm_update_6005() { Line 369  function mlm_update_6005() {
369    
370    return $ret;    return $ret;
371  }  }
372    
373    /**
374     * Add the mlm_text table.
375     */
376    function mlm_update_6006() {
377      $ret = array();
378      $schema = drupal_get_schema(NULL, TRUE);
379      db_create_table($ret, 'mlm_text', $schema['mlm_text']);
380      return $ret;
381    }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.2