diff --git a/sql/relationdb_n.sql b/sql/relationdb_n.sql index ea353ef..01419cc 100644 --- a/sql/relationdb_n.sql +++ b/sql/relationdb_n.sql @@ -102,7 +102,7 @@ CREATE TABLE `friend_apply` ( PRIMARY KEY (`idx`), UNIQUE KEY `applyid` (`applyid`), KEY `target_id` (`target_id`), - KEY `target_sender` (`sender_id`) + KEY `target_sender` (`target_id`, `sender_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;