Index: server/pifr_server.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_review/server/pifr_server.install,v
retrieving revision 1.9
diff -u -r1.9 pifr_server.install
--- server/pifr_server.install	31 Jan 2009 07:33:30 -0000	1.9
+++ server/pifr_server.install	31 Jan 2009 07:35:22 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: pifr_server.install,v 1.9 2009/01/31 07:33:30 boombatower Exp $
+// $Id: pifr_server.install,v 1.8 2009/01/19 08:58:06 boombatower Exp $
 /**
  * @file
  * Automatically review patches attached to issues.
@@ -34,11 +34,6 @@
         'unsigned' => TRUE,
         'not null' => TRUE
       ),
-      'environment_id' => array(
-        'description' => t('Environment ID which the client will test, does not apply to server.'),
-        'type' => 'int',
-        'not null' => TRUE
-      ),
       'uid' => array(
         'description' => t('User ID that owns client.'),
         'type' => 'int',
@@ -64,15 +59,9 @@
         'unsigned' => FALSE,
         'not null' => FALSE
       ),
-      'test_count' => array(
-        'description' => t('Number of tests performed on client.'),
-        'type' => 'int',
-        'unsigned' => TRUE,
-        'not null' => TRUE
-      ),
     ),
     'indexes' => array(
-      'client_key' => array('client_key')
+      'client_kkey' => array('client_key')
     ),
     'primary key' => array('client_id')
   );
@@ -189,33 +178,6 @@
         'unsigned' => FALSE,
         'not null' => TRUE
       ),
-    ),
-    'indexes' => array(
-      'project_client_id' => array('project_client_id'),
-      'nid' => array('nid'),
-      'status' => array('status')
-    ),
-    'primary key' => array('file_id')
-  );
-  $schema['pifr_result'] = array(
-    'description' => t('Stores summarized result of testing on each environment.'),
-    'fields' => array(
-      'file_result_id' => array(
-        'description' => t('Unique file result ID.'),
-        'type' => 'serial',
-        'unsigned' => TRUE,
-        'not null' => TRUE
-      ),
-      'file_id' => array(
-        'description' => t('File ID results belong to.'),
-        'type' => 'int',
-        'not null' => TRUE
-      ),
-      'environment_id' => array(
-        'description' => t('Environment ID on which the results occured.'),
-        'type' => 'int',
-        'not null' => TRUE
-      ),
       'message' => array(
         'description' => t('Message related to result.'),
         'type' => 'varchar',
@@ -224,126 +186,100 @@
         'default' => ''
       ),
       'pass' => array(
-        'description' => t('Total number of passes.'),
+        'description' => t('Total number of passed assertions.'),
         'type' => 'int',
+        'unsigned' => TRUE,
         'not null' => TRUE
       ),
-      'fail' => array(
-        'description' => t('Total number of fails.'),
+      'exception' => array(
+        'description' => t('Total number of exceptions raised.'),
         'type' => 'int',
+        'unsigned' => TRUE,
         'not null' => TRUE
       ),
-      'exception' => array(
-        'description' => t('Total number of exceptions.'),
+      'fail' => array(
+        'description' => t('Total number of failed assertions.'),
         'type' => 'int',
+        'unsigned' => TRUE,
         'not null' => TRUE
-      )
+      ),
     ),
     'indexes' => array(
-      'reporter' => array('file_id')
+      'project_client_id' => array('project_client_id'),
+      'nid' => array('nid'),
+      'status' => array('status')
     ),
-    'primary key' => array('file_result_id')
+    'primary key' => array('file_id')
   );
-  $schema['pifr_result_detail'] = array(
-    'description' => t('Stores summarized result of each test.'),
+  $schema['pifr_result'] = array(
+    'description' => t('Stores summarized result of testing on each environment.'),
     'fields' => array(
-      'file_result_detail_id' => array(
-        'description' => t('Unique file result detail ID.'),
-        'type' => 'serial',
-        'unsigned' => TRUE,
-        'not null' => TRUE
-      ),
-      'file_result_id' => array(
+      'file_id' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'description' => t('File result ID results belong to.')
+        'description' => t('File ID results belong to.')
       ),
       'test_name' => array(
-        'description' => t('The name of the test that created this result.'),
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
-        'default' => ''
+        'default' => '',
+        'description' => t('The name of the test that created this result.')
       ),
       'pass' => array(
-        'description' => t('Total number of passes.'),
         'type' => 'int',
-        'not null' => TRUE
+        'not null' => TRUE,
+        'description' => t('Total number of passes.')
       ),
       'fail' => array(
-        'description' => t('Total number of fails.'),
         'type' => 'int',
-        'not null' => TRUE
+        'not null' => TRUE,
+        'description' => t('Total number of fails.')
       ),
       'exception' => array(
-        'description' => t('Total number of exceptions.'),
         'type' => 'int',
-        'not null' => TRUE
+        'not null' => TRUE,
+        'description' => t('Total number of exceptions.')
       )
     ),
     'indexes' => array(
-      'reporter' => array('file_result_id')
-    ),
-    'primary key' => array('file_result_detail_id')
+      'reporter' => array('file_id')
+    )
   );
-  $schema['pifr_result_detail_assertion'] = array(
-    'description' => t('Stores non-pass assertions for each test.'),
+  $schema['pifr_result'] = array(
+    'description' => t('Stores summarized result of testing.'),
     'fields' => array(
-      'file_result_detail_assertion_id' => array(
-        'description' => t('Unique file result detail assertion ID.'),
-        'type' => 'serial',
-        'unsigned' => TRUE,
-        'not null' => TRUE
-      ),
-      'file_result_detail_id' => array(
+      'file_id' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'description' => t('File result detail ID assertions belong to.')
+        'description' => t('File ID results belong to.')
       ),
-      'status' => array(
-        'type' => 'varchar',
-        'length' => 9,
-        'not null' => TRUE,
-        'default' => '',
-        'description' => t('Message status. Core understands pass, fail, exception.'),
-      ),
-      'message' => array(
-        'type' => 'text',
-        'not null' => TRUE,
-        'description' => t('Assertion message.'),
-      ),
-      'message_group' => array(
+      'test_name' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Message group this assertion belongs to. For example: warning, browser, user.'),
+        'description' => t('The name of the test that created this result.')
       ),
-      'function' => array(
-        'type' => 'varchar',
-        'length' => 255,
+      'pass' => array(
+        'type' => 'int',
         'not null' => TRUE,
-        'default' => '',
-        'description' => t('Name of the assertion function or method that created this message.'),
+        'description' => t('Total number of passes.')
       ),
-      'line' => array(
+      'fail' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
-        'description' => t('Line number on which the function is called.'),
+        'description' => t('Total number of fails.')
       ),
-      'file' => array(
-        'type' => 'varchar',
-        'length' => 255,
+      'exception' => array(
+        'type' => 'int',
         'not null' => TRUE,
-        'default' => '',
-        'description' => t('Name of the file where the function is called.'),
-      ),
+        'description' => t('Total number of exceptions.')
+      )
     ),
     'indexes' => array(
-      'reporter' => array('file_result_detail_id')
-    ),
-    'primary key' => array('file_result_detail_assertion_id')
+      'reporter' => array('file_id')
+    )
   );
   $schema['pifr_log'] = array(
     'description' => t('Stores log of all events that take place in a file test cycle.'),
