summaryrefslogtreecommitdiffstats
path: root/db updates.sql
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-03-24 16:59:17 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-03-24 17:14:22 -0500
commit77bdf780635398e65942a017d15610ce64041999 (patch)
tree515db123e76ba9e6cbb8725c59ff9fa9d6482916 /db updates.sql
parent7463bffe7ac502d69d132d6b2edac8d8e0ed29bd (diff)
downloadpathery-release.tar.xz
Fixes for DB before releasing to productionrelease
Diffstat (limited to 'db updates.sql')
-rw-r--r--db updates.sql7
1 files changed, 5 insertions, 2 deletions
diff --git a/db updates.sql b/db updates.sql
index 5afd88f..739c6e3 100644
--- a/db updates.sql
+++ b/db updates.sql
@@ -247,6 +247,9 @@ DROP INDEX `mapID` ,
ADD UNIQUE `mapID` ( `mapID` , `ordering` );
-- Optimizing the daily update queries
-ALTER TABLE `solutions` ADD INDEX ( `isHighScore` )
+ALTER TABLE `solutions` ADD INDEX ( `isHighScore` );
-ALTER TABLE `users` ADD `wallOrientation` TINYINT NOT NULL DEFAULT '0' AFTER `wallEmblem` \ No newline at end of file
+ALTER TABLE `users` ADD `wallOrientation` TINYINT NOT NULL DEFAULT '0' AFTER `wallEmblem`;
+
+ALTER TABLE `solutions` DROP INDEX `userIDmapID` ,
+ADD UNIQUE `mapIDuserID` ( `mapID` , `userID` ); \ No newline at end of file