From 78f685f1f4fa66ebe97ee4d7c8c1db3054a34351 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 18 Jun 2020 16:55:07 +0800 Subject: [PATCH] 1 --- sql/relationdb_n.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */;