Index: trunk/admin/install/inportal_schema.sql
===================================================================
diff -u -r1020 -r1176
--- trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 1020)
+++ trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 1176)
@@ -116,7 +116,9 @@
   ResourceId int(11) NOT NULL default '0',
   CustomFieldId int(11) NOT NULL default '0',
   Value text NOT NULL,
-  PRIMARY KEY  (CustomDataId)
+  PRIMARY KEY  (CustomDataId),
+  KEY ResourceId (ResourceId),
+  KEY CustomFieldId (CustomFieldId)
 )
 
 # --------------------------------------------------------
