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

Diff of /contributions/modules/troll/troll.install

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

revision 1.5.2.3, Mon Mar 2 00:25:31 2009 UTC revision 1.5.2.4, Sat May 9 05:47:46 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: troll.install,v 1.5.2.2 2009/03/01 03:26:44 deekayen Exp $  // $Id: troll.install,v 1.5.2.3 2009/03/02 00:25:31 deekayen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 69  function troll_update_5000() { Line 69  function troll_update_5000() {
69    return $ret;    return $ret;
70  }  }
71    
72    function troll_update_6000() {
73      $ret = array();
74      db_change_field($ret, 'troll_blacklist', 'net', 'net', array('type' => 'int', 'size' => 'big', 'not null' => TRUE));
75      db_change_field($ret, 'troll_blacklist', 'bcast', 'bcast', array('type' => 'int', 'size' => 'big', 'not null' => TRUE));
76      db_change_field($ret, 'troll_whitelist', 'net', 'net', array('type' => 'int', 'size' => 'big', 'not null' => TRUE));
77      db_change_field($ret, 'troll_whitelist', 'bcast', 'bcast', array('type' => 'int', 'size' => 'big', 'not null' => TRUE));
78      return $ret;
79    }
80    
81  /**  /**
82   * Implementation of hook_uninstall().   * Implementation of hook_uninstall().
83   */   */
# Line 89  function troll_uninstall() { Line 98  function troll_uninstall() {
98  function troll_schema() {  function troll_schema() {
99    $schema['troll_whitelist'] = array(    $schema['troll_whitelist'] = array(
100      'fields' => array(      'fields' => array(
101           'net' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11'),           'net' => array('type' => 'int', 'size' => 'big', 'not null' => TRUE),
102           'bcast' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11')),           'bcast' => array('type' => 'int', 'size' => 'big', 'not null' => TRUE)),
103      'unique keys' => array(      'unique keys' => array(
104           'net' => array('net', 'bcast')),           'net' => array('net', 'bcast')),
105    );    );
# Line 117  function troll_schema() { Line 126  function troll_schema() {
126    );    );
127    $schema['troll_blacklist'] = array(    $schema['troll_blacklist'] = array(
128      'fields' => array(      'fields' => array(
129           'net' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11'),           'net' => array('type' => 'int', 'size' => 'big', 'not null' => TRUE),
130           'bcast' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11')),           'bcast' => array('type' => 'int', 'size' => 'big', 'not null' => TRUE)),
131      'unique keys' => array(      'unique keys' => array(
132           'net' => array('net', 'bcast')),           'net' => array('net', 'bcast')),
133    );    );

Legend:
Removed from v.1.5.2.3  
changed lines
  Added in v.1.5.2.4

  ViewVC Help
Powered by ViewVC 1.1.2