chore: add upgrader for #41

This commit is contained in:
Baoshuo Ren 2023-02-13 20:33:39 +08:00
parent dfd4156aef
commit 7eed24e4c3
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 14 additions and 1 deletions

View File

@ -1025,7 +1025,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
('28_remote_judge', 'up', now()),
('31_problem_resources', 'up', now()),
('36_decimal_score_range', 'up', now()),
('40_contest_resources', 'up', now());
('40_contest_resources', 'up', now()),
('41_mail_notice', 'up', now());
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
UNLOCK TABLES;

View File

@ -0,0 +1,12 @@
CREATE TABLE `emails` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`receiver` varchar(20) NOT NULL,
`subject` varchar(100) NOT NULL,
`content` text NOT NULL,
`created_at` datetime NOT NULL,
`send_time` datetime DEFAULT NULL,
`priority` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `send_time` (`send_time`),
KEY `priority` (`priority`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;