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

Diff of /contributions/modules/storm/storminvoice/storminvoice.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:05 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: storminvoice.install,v 1.1 2008/06/11 12:55:05 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 28  function storminvoice_schema() { Line 28  function storminvoice_schema() {
28        'duedate'             => array('type' => 'int'),        'duedate'             => array('type' => 'int'),
29        'paymentdate'         => array('type' => 'int'),        'paymentdate'         => array('type' => 'int'),
30        'amount'              => array('type' => 'float'),        'amount'              => array('type' => 'float'),
31        'vat'                 => array('type' => 'float'),        'tax'                 => array('type' => 'float'),
32        'total'               => array('type' => 'float'),        'total'               => array('type' => 'float'),
33        'totalcustomercurr'   => array('type' => 'float'),        'totalcustomercurr'   => array('type' => 'float'),
34        'vatexempt'           => array('type' => 'int', 'length' => 1),        'taxexempt'           => array('type' => 'int', 'length' => 1),
35      ),      ),
36      'primary key' => array('vid', 'nid'),      'primary key' => array('vid', 'nid'),
37    );    );
# Line 39  function storminvoice_schema() { Line 39  function storminvoice_schema() {
39    return $schema;    return $schema;
40  }  }
41    
42    function storminvoice_update_1() {
43      $ret = array();
44      db_change_field($ret, 'storminvoice', 'vat', 'tax', array('type' => 'float'));
45      db_change_field($ret, 'storminvoice', 'vatexempt', 'taxexempt', array('type' => 'int', 'length' => 1));
46      return $ret;
47    }
48    
49    

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

  ViewVC Help
Powered by ViewVC 1.1.2