mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 16:08:41 +00:00
chore: add upgrader for #41
This commit is contained in:
parent
dfd4156aef
commit
7eed24e4c3
@ -1025,7 +1025,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
|
|||||||
('28_remote_judge', 'up', now()),
|
('28_remote_judge', 'up', now()),
|
||||||
('31_problem_resources', 'up', now()),
|
('31_problem_resources', 'up', now()),
|
||||||
('36_decimal_score_range', '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 */;
|
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
12
web/app/upgrade/41_mail_notice/up.sql
Normal file
12
web/app/upgrade/41_mail_notice/up.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user