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

Diff of /contributions/modules/refcolab/refcolab.install

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

revision 1.1, Fri Jun 13 00:42:46 2008 UTC revision 1.2, Tue Jun 17 03:54:52 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: refcolab.install,v 1.1 2008/06/13 00:42:46 herc Exp $
3    
4  /**  /**
5   * Implementation of hook_schema().   * Implementation of hook_schema().
# Line 35  function refcolab_schema() { Line 35  function refcolab_schema() {
35      ),      ),
36     'primary key' => array('vid'),     'primary key' => array('vid'),
37    );    );
38    
39      $schema['refcolab_references_creators'] = array(
40        'description' => t('Stores the references creators data.'),
41        'fields' => array(
42          'nid' => array(
43            'description' => t('The {node}.nid of the related node.'),
44            'type' => 'int',
45            'unsigned' => TRUE,
46            'not null' => TRUE,
47          ),
48          'vid' => array(
49            'description' => t('Primary Key: The {node}.vid of the related node.'),
50            'type' => 'int',
51            'unsigned' => TRUE,
52            'not null' => TRUE,
53          ),
54          'delta' => array(
55            'description' => t('Primary Key: The delta value of the field.'),
56            'type' => 'int',
57            'unsigned' => TRUE,
58            'not null' => TRUE,
59          ),
60          'creator' => array(
61            'description' => t('The creator field.'),
62            'type' => 'varchar',
63            'length' => 32,
64            'not null' => TRUE,
65          ),
66          'value' => array(
67            'description' => t('The value of the field.'),
68            'type' => 'varchar',
69            'length' => 255,
70            'not null' => TRUE,
71          ),
72          'weight' => array(
73            'description' => t('The weight of this field in relation to other fields in the node.'),
74            'type' => 'int',
75            'not null' => TRUE,
76            'default' => 0,
77            'size' => 'tiny',
78          ),
79        ),
80       'primary key' => array('vid', 'delta'),
81      );
82    
83    
84  // Get the dynamically generated schema based on the refernce types and fields definitions.  // Get the dynamically generated schema based on the refernce types and fields definitions.
85    $schema += _refcolab_db_schema_dynamic();    $schema += _refcolab_db_schema_dynamic();

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

  ViewVC Help
Powered by ViewVC 1.1.2