/[drupal]/contributions/modules/ecommerce/ec_anon/ec_anon.install
ViewVC logotype

Diff of /contributions/modules/ecommerce/ec_anon/ec_anon.install

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

revision 1.10.2.20 by gordon, Sun Nov 15 00:03:25 2009 UTC revision 1.10.2.21 by gordon, Sat Nov 21 11:13:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: ec_anon.install,v 1.10.2.19 2009/11/14 13:22:37 gordon Exp $  // $Id: ec_anon.install,v 1.10.2.20 2009/11/15 00:03:25 gordon Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 17  function ec_anon_install() { Line 17  function ec_anon_install() {
17        'type' => 'int',        'type' => 'int',
18        'size' => 'tiny',        'size' => 'tiny',
19        'not null' => TRUE,        'not null' => TRUE,
20        'default' => ECANON_POLICY_OPTIONAL        'default' => 2,
21      ));      ));
22    }    }
23  }  }
# Line 40  function ec_anon_schema_alter(&$schema) Line 40  function ec_anon_schema_alter(&$schema)
40      'type' => 'int',      'type' => 'int',
41      'size' => 'tiny',      'size' => 'tiny',
42      'not null' => TRUE,      'not null' => TRUE,
43      'default' => ECANON_POLICY_OPTIONAL      'default' => 2
44    );    );
45  }  }
46    
# Line 103  function ec_anon_update_6402() { Line 103  function ec_anon_update_6402() {
103    $ret = array();    $ret = array();
104    
105    if (db_table_exists('ec_product') && !db_column_exists('ec_product', 'anon_policy')) {    if (db_table_exists('ec_product') && !db_column_exists('ec_product', 'anon_policy')) {
106      db_add_field($ret, 'ec_product', 'anon_policy', array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => ECANON_POLICY_UNSET));      db_add_field($ret, 'ec_product', 'anon_policy', array(
107          'type' => 'int',
108          'size' => 'tiny',
109          'not null' => TRUE,
110          'default' => 2,
111        ));
112    }    }
113    
114    return $ret;    return $ret;
# Line 147  function ec_anon_update_6404() { Line 152  function ec_anon_update_6404() {
152    $ret = array();    $ret = array();
153    
154    if (db_table_exists('ec_product') && !db_column_exists('ec_product', 'anon_policy')) {    if (db_table_exists('ec_product') && !db_column_exists('ec_product', 'anon_policy')) {
155      db_add_field($ret, 'ec_product', 'anon_policy', array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => ECANON_POLICY_UNSET));      db_add_field($ret, 'ec_product', 'anon_policy', array(
156          'type' => 'int',
157          'size' => 'tiny',
158          'not null' => TRUE,
159          'default' => 2,
160        ));
161    }    }
162    
163    return $ret;    return $ret;

Legend:
Removed from v.1.10.2.20  
changed lines
  Added in v.1.10.2.21

  ViewVC Help
Powered by ViewVC 1.1.3