Index: trunk/admin/install/inportal_schema.sql
===================================================================
diff -u -N -r5185 -r5231
--- trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 5185)
+++ trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 5231)
@@ -340,7 +340,8 @@
   PermissionValue int(11) NOT NULL default '0',
   Type tinyint(4) NOT NULL default '0',
   CatId int(11) NOT NULL default '0',
-  PRIMARY KEY  (PermissionId)
+  PRIMARY KEY  (PermissionId),
+  UNIQUE KEY PermIndex (Permission,GroupId,CatId,Type)
 )
 
 # --------------------------------------------------------
