| 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(). |
| 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(); |