Index: project_release.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/release/project_release.install,v
retrieving revision 1.33
diff -u -p -r1.33 project_release.install
--- project_release.install	24 Dec 2010 15:20:08 -0000	1.33
+++ project_release.install	19 Feb 2011 05:55:30 -0000
@@ -183,6 +183,12 @@ function project_release_schema() {
         'size' => 'tiny',
         'description' => 'Weight of this file in relation to other files in this release.',
       ),
+      'downloads' => array(
+        'description' => 'Number of times this file has been downloaded. This value is updated by site specific means.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
     ),
     'primary key' => array('fid'),
     'indexes' => array('nid' => array('nid')),
@@ -807,3 +813,18 @@ function project_release_update_6011() {
   db_add_field($ret, 'project_release_file', 'weight', $spec);
   return $ret;
 }
+
+/**
+ * Add the 'downloads' column to {project_release_file}.
+ */
+function project_release_update_6012() {
+  $ret = array();
+  $spec = array(
+    'description' => 'Number of times this file has been downloaded. This value is updated by site specific means.',
+    'type' => 'int',
+    'not null' => TRUE,
+    'default' => 0,
+  );
+  db_add_field($ret, 'project_release_file', 'downloads', $spec);
+  return $ret;
+}
