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

Diff of /contributions/modules/persistent_login/persistent_login.install

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

revision 1.9.2.2, Fri Apr 24 14:50:18 2009 UTC revision 1.9.2.3, Fri May 1 08:40:26 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: persistent_login.install,v 1.9.2.1 2009/04/23 00:25:56 markuspetrux Exp $  // $Id: persistent_login.install,v 1.9.2.2 2009/04/24 14:50:18 markuspetrux Exp $
3    
4  /**  /**
5   * Implementation of hook_schema().   * Implementation of hook_schema().
# Line 25  function persistent_login_schema() { Line 25  function persistent_login_schema() {
25      'primary key' => array('uid', 'series'),      'primary key' => array('uid', 'series'),
26      'indexes' => array(      'indexes' => array(
27        'expires' => array('expires'),        'expires' => array('expires'),
28          'uid_expires' => array('uid', 'expires'),
29      ),      ),
30    );    );
31    $schema['persistent_login_history'] = array(    $schema['persistent_login_history'] = array(
# Line 117  function persistent_login_update_6000() Line 118  function persistent_login_update_6000()
118    
119    return $ret;    return $ret;
120  }  }
121    
122    /**
123     * Add new index by uid, expires to Persistent Login table.
124     */
125    function persistent_login_update_6001() {
126      $ret = array();
127    
128      db_add_index($ret, 'persistent_login', 'uid_expires', array('uid', 'expires'));
129    
130      return $ret;
131    }

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

  ViewVC Help
Powered by ViewVC 1.1.2