| 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 |
| 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 |
} |
} |
| 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 |
|
|
| 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; |
| 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; |