summaryrefslogtreecommitdiffstats
path: root/db updates.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db updates.sql')
-rw-r--r--db updates.sql3
1 files changed, 1 insertions, 2 deletions
diff --git a/db updates.sql b/db updates.sql
index d97095c..ea17b9c 100644
--- a/db updates.sql
+++ b/db updates.sql
@@ -109,8 +109,7 @@ UPDATE unlocks SET name = 'Light Diagonal Cover' WHERE name = 'Light Diagnol Cov
-- If any duplicates exist you can find them with this:
-- select mapID, count(*) from `solutions` group by mapID, userID HAVING count(*) > 1
ALTER TABLE `solutions` DROP INDEX `userID` ,
-ADD UNIQUE `userIDmapID` ( `userID` , `mapID` )
-UPDATE unlocks SET name = 'Light Diagonal Cover' WHERE name = 'Light Diagnol Cover';
+ADD UNIQUE `userIDmapID` ( `userID` , `mapID` );
-- The new code relies on these being unique, so we'll enforce that through indices. Make sure you
-- verify these ARE unique in the DB before adding these indices (they weren't in my test DB)