Index: og_legal.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og_legal/og_legal.install,v
retrieving revision 1.1.2.1
diff -u -F^f -r1.1.2.1 og_legal.install
--- og_legal.install	7 Aug 2009 21:39:06 -0000	1.1.2.1
+++ og_legal.install	28 Sep 2009 21:19:18 -0000
@@ -33,6 +33,9 @@ function og_legal_schema() {
       'flag' => array('type' => 'int', 'unsigned' => FALSE, 'not null' => TRUE, 'default' => 0, 'disp-width' => 1,
                       'description' => 'Flag indicating whether this group node should have Terms and Conditions'),
     ),
+    'unique keys' => array(
+      'nid_vid' => array('nid', 'vid'),
+    ),
   );
   $schema['og_legal_accepted'] = array(
     'fields' => array(
@@ -72,3 +75,9 @@ function og_legal_uninstall() {
   drupal_uninstall_schema('og_legal');
   variable_del('og_legal_display');
 }
+
+function og_legal_update_601() {
+  $ret = array();
+  db_add_unique_key($ret, 'og_legal', 'nid_vid', array('nid', 'vid')); 
+  return $ret;
+}
