diff --git a/db/app_uoj233.sql b/db/app_uoj233.sql index d0f01ca..941019f 100644 --- a/db/app_uoj233.sql +++ b/db/app_uoj233.sql @@ -632,6 +632,28 @@ LOCK TABLES `problems_permissions` WRITE; /*!40000 ALTER TABLE `problems_permissions` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `problems_solutions` +-- + +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `problems_solutions` ( + `problem_id` int(11) NOT NULL, + `blog_id` int(11) NOT NULL, + PRIMARY KEY (`problem_id`, `blog_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `problems_solutions` +-- + +LOCK TABLES `problems_solutions` WRITE; +/*!40000 ALTER TABLE `problems_solutions` DISABLE KEYS */; +/*!40000 ALTER TABLE `problems_solutions` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `problems_tags` -- diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 8c3edf9..0837a85 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -314,6 +314,9 @@ $('#contest-countdown').countdown(getTimestamp() - UOJ + + + @@ -408,6 +411,14 @@ $('#contest-countdown').countdown(getTimestamp() - UOJ + + +