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

Diff of /contributions/modules/docapi/docapi.install

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

revision 1.2.2.5, Sat Jul 12 19:24:49 2008 UTC revision 1.2.2.6, Wed Aug 20 02:40:58 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2    // $Id: docapi.install,v 1.2.2.4 2008/07/10 03:10:48 bradfordcp Exp $    // $Id: docapi.install,v 1.2.2.5 2008/07/12 19:24:49 bradfordcp Exp $
3    
4    /**    /**
5     * @file     * @file
# Line 107  Line 107 
107      );      );
108    
109      $schema['docapi_metadata_map'] = array(      $schema['docapi_metadata_map'] = array(
110        'description' => t('Maps each field within the metadata to a node\'s field'),        'description' => t('Manages the metadata mappings'),
111        'fields' => array(        'fields' => array(
112          'metadata_map_id' => array(          'metadata_map_id' => array(
113            'description' => t('The id of the mapping'),            'description' => t('The current map\'s id'),
114            'type' => 'serial',            'type' => 'serial',
115            'not null' => true,            'not null' => true,
116          ),          ),
117            'name' => array(
118              'description' => t('A unique name for the map'),
119              'type' => 'varchar',
120              'length' => '255',
121              'not null' => true,
122            ),
123            'mimetype' => array(
124              'description' => t('The mimetype of the item we are pulling information from.'),
125              'type' => 'varchar',
126              'length' => '255',
127              'not null' => true,
128            ),
129          'nodetype' => array(          'nodetype' => array(
130            'description' => t('The type of node this map is for.'),            'description' => t('The nodetype we are mapping to.'),
131            'type' => 'varchar',            'type' => 'varchar',
132            'length' => '255',            'length' => '255',
133            'not null' => true,            'not null' => true,
134          ),          ),
135            'nid' => array(
136              'description' => t('The sample node we are mapping from'),
137              'type' => 'int',
138              'length' => '255',
139              'not null' => true,
140            ),
141          ),
142          'unique keys' => array(
143          ),
144          'primary key' => array(
145            'metadata_map_id',
146          ),
147        );
148    
149        $schema['docapi_metadata_mappings'] = array(
150          'description' => t('Maps each field within the metadata to a node\'s field'),
151          'fields' => array(
152            'metadata_mapping_id' => array(
153              'description' => t('The id of the mapping'),
154              'type' => 'serial',
155              'not null' => true,
156            ),
157            'metadata_map_id' => array(
158              'description' => t('The metadata map this mapping belongs to.'),
159              'type' => 'int',
160              'not null' => true,
161            ),
162          'node_field' => array(          'node_field' => array(
163            'desciption' => t('The field the module is mapping to within the node.'),            'desciption' => t('The field the module is mapping to within the node.'),
164            'type' => 'varchar',            'type' => 'varchar',
# Line 138  Line 177 
177        'unique keys' => array(        'unique keys' => array(
178        ),        ),
179        'primary key' => array(        'primary key' => array(
180          'metadata_map_id',          'metadata_mapping_id',
181        ),        ),
182      );      );
183    

Legend:
Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.6

  ViewVC Help
Powered by ViewVC 1.1.2