/[drupal]/contributions/modules/storm/storminvoiceitem/storminvoiceitem.install
ViewVC logotype

Diff of /contributions/modules/storm/storminvoiceitem/storminvoiceitem.install

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

revision 1.1, Wed Jun 11 12:55:19 2008 UTC revision 1.1.4.1, Mon Sep 1 08:50:21 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: storminvoiceitem.install,v 1.1 2008/06/11 12:55:19 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 21  function storminvoiceitem_schema() { Line 21  function storminvoiceitem_schema() {
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'),
# Line 31  function storminvoiceitem_schema() { Line 31  function storminvoiceitem_schema() {
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

  ViewVC Help
Powered by ViewVC 1.1.2