From 44d308f47c6dc1e0d79746eb33b10b3d1fbbaede Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 14 Nov 2022 14:58:46 +0800 Subject: [PATCH] fix(db): add some keys for `problems` --- db/app_uoj233.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/app_uoj233.sql b/db/app_uoj233.sql index 0127874..9706a68 100644 --- a/db/app_uoj233.sql +++ b/db/app_uoj233.sql @@ -623,7 +623,9 @@ CREATE TABLE `problems` ( `submit_num` int(11) NOT NULL DEFAULT '0', `assigned_to_judger` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'any', PRIMARY KEY (`id`), - KEY `assigned_to_judger` (`assigned_to_judger`) + KEY `assigned_to_judger` (`assigned_to_judger`), + KEY `uploader` (`uploader`), + KEY `is_hidden` (`is_hidden`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci TABLESPACE `innodb_system`; /*!40101 SET character_set_client = @saved_cs_client */;