| 1 |
<?php |
<?php |
| 2 |
// $Id: versioncontrol_project.install,v 1.23 2009/05/29 16:21:56 jpetso Exp $ |
// $Id: versioncontrol_project.install,v 1.24 2009/05/31 17:32:33 jpetso Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Version Control / Project Node integration - Integrates project nodes |
* Version Control / Project Node integration - Integrates project nodes |
| 7 |
* by the Version Control API. |
* by the Version Control API. |
| 8 |
* |
* |
| 9 |
* Copyright 2006 by Karthik ("Zen", http://drupal.org/user/21209) |
* Copyright 2006 by Karthik ("Zen", http://drupal.org/user/21209) |
| 10 |
* Copyright 2006, 2007 by Derek Wright ("dww", http://drupal.org/user/46549) |
* Copyright 2006, 2007, 2009 by Derek Wright ("dww", http://drupal.org/user/46549) |
| 11 |
* Copyright 2007 by Jakob Petsovits ("jpetso", http://drupal.org/user/56020) |
* Copyright 2007, 2009 by Jakob Petsovits ("jpetso", http://drupal.org/user/56020) |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
/** |
/** |
| 109 |
'primary key' => array('vc_op_id', 'nid'), |
'primary key' => array('vc_op_id', 'nid'), |
| 110 |
); |
); |
| 111 |
|
|
| 112 |
|
$schema['versioncontrol_project_cache_block'] = array( |
| 113 |
|
'description' => t('Cache for project-node-specific blocks that cannot rely on the normal block cache.'), |
| 114 |
|
'fields' => array( |
| 115 |
|
'cid' => array( |
| 116 |
|
'description' => 'Primary Key: Unique cache ID.', |
| 117 |
|
'type' => 'varchar', |
| 118 |
|
'length' => 255, |
| 119 |
|
'not null' => TRUE, |
| 120 |
|
'default' => '', |
| 121 |
|
), |
| 122 |
|
'data' => array( |
| 123 |
|
'description' => 'A collection of data to cache.', |
| 124 |
|
'type' => 'blob', |
| 125 |
|
'not null' => FALSE, |
| 126 |
|
'size' => 'big', |
| 127 |
|
), |
| 128 |
|
), |
| 129 |
|
'primary key' => array('cid'), |
| 130 |
|
); |
| 131 |
|
|
| 132 |
return $schema; |
return $schema; |
| 133 |
} |
} |
| 134 |
|
|
| 176 |
'versioncontrol_project_restrict_creation', |
'versioncontrol_project_restrict_creation', |
| 177 |
'versioncontrol_project_dir_validate_by_type', |
'versioncontrol_project_dir_validate_by_type', |
| 178 |
'versioncontrol_project_validate_by_short_name', |
'versioncontrol_project_validate_by_short_name', |
| 179 |
|
'versioncontrol_project_developers_block_length', |
| 180 |
|
'versioncontrol_project_maintainers_block_length', |
| 181 |
); |
); |
| 182 |
foreach ($variables as $variable) { |
foreach ($variables as $variable) { |
| 183 |
variable_del($variable); |
variable_del($variable); |
| 260 |
WHERE delta = '0' AND module = 'versioncontrol_project'"); |
WHERE delta = '0' AND module = 'versioncontrol_project'"); |
| 261 |
return $ret; |
return $ret; |
| 262 |
} |
} |
| 263 |
|
|
| 264 |
|
/** |
| 265 |
|
* Update 6102 (from 6.x-1.0-rc1 to rc2): |
| 266 |
|
* Add the {versioncontrol_project_cache_block} table for the maintainers block. |
| 267 |
|
*/ |
| 268 |
|
function versioncontrol_project_update_6102() { |
| 269 |
|
$ret = array(); |
| 270 |
|
$table = array( |
| 271 |
|
'fields' => array( |
| 272 |
|
'cid' => array( |
| 273 |
|
'type' => 'varchar', |
| 274 |
|
'length' => 255, |
| 275 |
|
'not null' => TRUE, |
| 276 |
|
'default' => '', |
| 277 |
|
), |
| 278 |
|
'data' => array( |
| 279 |
|
'type' => 'blob', |
| 280 |
|
'not null' => FALSE, |
| 281 |
|
'size' => 'big', |
| 282 |
|
), |
| 283 |
|
), |
| 284 |
|
'primary key' => array('cid'), |
| 285 |
|
); |
| 286 |
|
db_create_table($ret, 'versioncontrol_project_cache_block', $table); |
| 287 |
|
return $ret; |
| 288 |
|
} |