| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: storminvoiceitem.install,v 1.1 2008/06/11 12:55:19 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 21 |
'invoice_nid' => array('type' => 'int'), |
'invoice_nid' => array('type' => 'int'), |
| 22 |
'weight' => array('type' => 'int'), |
'weight' => array('type' => 'int'), |
| 23 |
'amount' => array('type' => 'float'), |
'amount' => array('type' => 'float'), |
| 24 |
'vatpercent' => array('type' => 'float'), |
'taxpercent' => array('type' => 'float'), |
| 25 |
'vat' => array('type' => 'float'), |
'tax' => array('type' => 'float'), |
| 26 |
'total' => array('type' => 'float'), |
'total' => array('type' => 'float'), |
| 27 |
), |
), |
| 28 |
'primary key' => array('vid', 'nid'), |
'primary key' => array('vid', 'nid'), |
| 31 |
return $schema; |
return $schema; |
| 32 |
} |
} |
| 33 |
|
|
| 34 |
|
function storminvoiceitem_update_1() { |
| 35 |
|
$ret = array(); |
| 36 |
|
db_change_field($ret, 'storminvoiceitem', 'vatpercent', 'taxpercent', array('type' => 'float')); |
| 37 |
|
db_change_field($ret, 'storminvoiceitem', 'vat', 'tax', array('type' => 'float')); |
| 38 |
|
return $ret; |
| 39 |
|
} |
| 40 |
|
|