Index: trunk/admin/install/inportal_schema.sql
===================================================================
diff -u -r1812 -r2052
--- trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 1812)
+++ trunk/admin/install/inportal_schema.sql	(.../inportal_schema.sql)	(revision 2052)
@@ -470,7 +470,7 @@
   SessionKey varchar(50) NOT NULL default '',
   VariableName varchar(255) NOT NULL default '',
   VariableValue text NOT NULL,
-  PRIMARY KEY  (`SessionKey`,`VariableName`),
+  PRIMARY KEY  (SessionKey,VariableName),
   KEY SessionKey (SessionKey),
   KEY VariableName (VariableName)
 )
@@ -649,7 +649,8 @@
   Type tinyint(4) NOT NULL default '0',
   AdvancedCSS text NOT NULL,
   ParentId int(11) NOT NULL default '0',
-  PRIMARY KEY  (SelectorId)
+  PRIMARY KEY  (SelectorId),
+  UNIQUE KEY UniqueIdName (StylesheetId,SelectorName)
 )
 # --------------------------------------------------------
 CREATE TABLE Stylesheets (
