| 1 |
<?php |
<?php |
| 2 |
// $Id: affiliates.install,v 1.1.4.2.2.4 2009/01/01 16:30:41 kbahey Exp $ |
// $Id: affiliates.install,v 1.1.4.2.2.5 2009/01/10 17:02:59 kbahey Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 90 |
db_add_field($ret, 'affiliates_cats', 'weight', array('type' => 'int', 'length' => '3', 'not null' => TRUE, 'default' => 0)); |
db_add_field($ret, 'affiliates_cats', 'weight', array('type' => 'int', 'length' => '3', 'not null' => TRUE, 'default' => 0)); |
| 91 |
return $ret; |
return $ret; |
| 92 |
} |
} |
| 93 |
|
|
| 94 |
|
function affiliates_update_6002() { |
| 95 |
|
$ret = array(); |
| 96 |
|
db_change_field($ret, 'affiliates', 'referer', 'referer', array('type' => 'varchar', 'length' => '256', 'default' => NULL)); |
| 97 |
|
db_change_field($ret, 'affiliates_ads', 'anchor', 'anchor', array('type' => 'varchar', 'length' => '256', 'default' => NULL)); |
| 98 |
|
db_change_field($ret, 'affiliates_ads', 'redirect', 'redirect', array('type' => 'varchar', 'length' => '256', 'default' => NULL)); |
| 99 |
|
return $ret; |
| 100 |
|
} |