Index: branches/eam_branches/ipp-20100621/DataStoreServer/scripts/dsreg
===================================================================
--- branches/eam_branches/ipp-20100621/DataStoreServer/scripts/dsreg	(revision 28983)
+++ branches/eam_branches/ipp-20100621/DataStoreServer/scripts/dsreg	(revision 28984)
@@ -332,7 +332,15 @@
 
 		    if ( !-e $src or !-r $src) {
-		    	print STDERR "file $src does not exist or is not accessible\n";
+		    	print STDERR "source file $src does not exist or is not accessible\n";
 			exit $PS_EXIT_SYS_ERROR;
 		    }
+		    if ( -e $dest ) {
+		    	print STDERR "destination $dest already exists removing\n";
+			if (! unlink $dest ) {
+                            print STDERR "failed trying to unlink $dest\n";
+			    exit $PS_EXIT_SYS_ERROR;
+			}
+		    }
+
                     if ($linkfiles) {
                         if (! symlink $src, $dest) {
Index: branches/eam_branches/ipp-20100621/dbconfig/changes.txt
===================================================================
--- branches/eam_branches/ipp-20100621/dbconfig/changes.txt	(revision 28983)
+++ branches/eam_branches/ipp-20100621/dbconfig/changes.txt	(revision 28984)
@@ -1939,2 +1939,8 @@
     FOREIGN KEY(sass_id) REFERENCES stackAssociation(sass_id)
 ) ENGINE=innodb DEFAULT CHARSET=latin1;
+
+-- Fixing summary tables;
+
+ALTER TABLE warpSummary DROP PRIMARY KEY, ADD PRIMARY KEY (warp_id, projection_cell);
+ALTER TABLE diffSummary DROP PRIMARY KEY, ADD PRIMARY KEY (diff_id, projection_cell);
+ALTER TABLE stackSummary DROP PRIMARY KEY, ADD PRIMARY KEY (sass_id, projection_cell);
