/[drupal]/contributions/modules/donation/donation.install
ViewVC logotype

Diff of /contributions/modules/donation/donation.install

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

revision 1.2, Sat Mar 14 21:00:35 2009 UTC revision 1.2.2.1, Tue May 26 02:27:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: donation.install,v 1.2 2009/03/14 21:00:35 kbahey Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 18  function donation_install() { Line 18  function donation_install() {
18  * Implementation of hook_schema().  * Implementation of hook_schema().
19  */  */
20  function donation_schema() {  function donation_schema() {
21    $schema['donation'] = array(    $schema['donations'] = array(
22      'fields' => array(      'fields' => array(
23           'did' => array('type' => 'serial', 'not null' => TRUE, 'disp-width' => '10'),           'did'           => array('type' => 'serial',                     'not null' => TRUE,  'disp-width' => '10'),
24           'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 1, 'disp-width' => '2'),           'status'        => array('type' => 'int',     'default' => 1,    'not null' => TRUE,  'disp-width' => '2'),
25           'name' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),           'name'          => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),
26           'mail' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),           'mail'          => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),
27           'timestamp' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'disp-width' => '11'),           'timestamp'     => array('type' => 'int',     'default' => 0,    'not null' => TRUE,  'disp-width' => '11'),
28           'amount' => array('type' => 'float', 'not null' => FALSE),           'amount'        => array('type' => 'float',                      'not null' => FALSE),
29           'currency' => array('type' => 'varchar', 'length' => '5', 'not null' => FALSE, 'default' => 'USD'),           'currency'      => array('type' => 'varchar', 'length' => '5',   'not null' => FALSE, 'default' => 'USD'),
30           'uid' => array('type' => 'int', 'not null' => FALSE, 'disp-width' => '11'),           'uid'           => array('type' => 'int',                        'not null' => FALSE, 'disp-width' => '11'),
31           'donor_name' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),           'donor_name'    => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),
32           'donor_url' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),           'donor_url'     => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),
33           'donor_memo' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),           'donor_memo'    => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),
34           'paypal_txn_id' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),           'paypal_txn_id' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE),
35           'donor_comment' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE)),           'donor_comment' => array('type' => 'varchar', 'length' => '255', 'not null' => FALSE)),
36      'primary key' => array('did'),      'primary key' => array('did'),
# Line 42  function donation_schema() { Line 42  function donation_schema() {
42    return $schema;    return $schema;
43  }  }
44    
   
   
45  /**  /**
46  * Implementation of hook_uninstall().  * Implementation of hook_uninstall().
47  */  */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2