Index: image.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.install,v
retrieving revision 1.15
diff -u -p -r1.15 image.install
--- image.install	6 Jan 2008 22:15:24 -0000	1.15
+++ image.install	22 Aug 2008 20:02:08 -0000
@@ -11,12 +11,14 @@ function image_schema() {
       'nid' => array(
         'description' => t('Primary Key: The {node}.nid of the image node.'),
         'type' => 'int',
+        'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
       ),
       'fid' => array(
         'description' => t('Index: The {files}.fid of the image file.'),
         'type' => 'int',
+        'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
       ),
@@ -28,6 +30,10 @@ function image_schema() {
         'default' => '',
       ),
     ),
+    'primary key' => array('nid', 'image_size'),
+    'indexes' => array(
+      'image_fid' => array('fid'),
+    ),
   );
   return $schema;
 }
