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

Diff of /contributions/modules/services/services.install

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

revision 1.3.2.1, Fri Aug 29 05:04:02 2008 UTC revision 1.3.2.2, Mon Sep 1 03:18:44 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: services.install,v 1.3 2008/01/10 00:35:53 robloach Exp $  // $Id: services.install,v 1.3.2.1 2008/08/29 05:04:02 brmassa Exp $
3  /**  /**
4   * @author Services Dev Team   * @author Services Dev Team
5   * @file   * @file
# Line 37  function services_schema() { Line 37  function services_schema() {
37      ),      ),
38      'primary key' => array('kid')      'primary key' => array('kid')
39    );    );
40    
41      $schema['services_timestamp_nonce'] = array(
42        'description' => 'Stores timestamp against nonce for repeat attacks.',
43        'fields' => array(
44          'timestamp' => array(
45            'description' => 'The timestamp used with the Nonce.',
46            'type'        => 'varchar',
47            'length'      => 32,
48            'not null'    => TRUE,
49            'default'     => ''
50          ),
51          'nonce' => array(
52            'description' => 'The random string used on the request.',
53            'type'        => 'varchar',
54            'length'      => 32,
55            'not null'    => TRUE,
56            'default'     => ''
57          ),
58          'domain' => array(
59            'description' => 'The domain that submitted the request.',
60            'type'        => 'varchar',
61            'length'      => 255,
62            'not null'    => TRUE,
63            'default'     => ''
64          ),
65        ),
66      );
67    return $schema;    return $schema;
68  }  }
69    
# Line 56  function services_uninstall() { Line 83  function services_uninstall() {
83    variable_del('services_use_sessid');    variable_del('services_use_sessid');
84    variable_del('services_debug');    variable_del('services_debug');
85  }  }
86    
87    /**
88     * Implementation of hook_update().
89     *
90     * Create the nonce table
91     */
92    function services_update_6001 () {
93      $schema['services_timestamp_nonce'] = array(
94        'description' => 'Stores timestamp against nonce for repeat attacks.',
95        'fields' => array(
96          'timestamp' => array(
97            'description' => 'The timestamp used with the Nonce.',
98            'type'        => 'varchar',
99            'length'      => 32,
100            'not null'    => TRUE,
101            'default'     => ''
102          ),
103          'nonce' => array(
104            'description' => 'The random string used on the request.',
105            'type'        => 'varchar',
106            'length'      => 32,
107            'not null'    => TRUE,
108            'default'     => ''
109          ),
110          'domain' => array(
111            'description' => 'The domain that submitted the request.',
112            'type'        => 'varchar',
113            'length'      => 255,
114            'not null'    => TRUE,
115            'default'     => ''
116          ),
117        ),
118      );
119      $update = array();
120      db_create_table($update, 'services_timestamp_nonce', $schema['services_timestamp_nonce']);
121      return $update;
122    }

Legend:
Removed from v.1.3.2.1  
changed lines
  Added in v.1.3.2.2

  ViewVC Help
Powered by ViewVC 1.1.2