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

Diff of /contributions/modules/versioncontrol_project/versioncontrol_project.install

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

revision 1.24, Sun May 31 17:32:33 2009 UTC revision 1.25, Mon Jun 1 13:23:32 2009 UTC
# Line 1  Line 1 
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
# Line 7  Line 7 
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  /**  /**
# Line 109  function versioncontrol_project_schema() Line 109  function versioncontrol_project_schema()
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    
# Line 156  function versioncontrol_project_uninstal Line 176  function versioncontrol_project_uninstal
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);
# Line 238  function versioncontrol_project_update_6 Line 260  function versioncontrol_project_update_6
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    }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.2