S2OJ/web/app/upgrade/4_image_hosting/up.sql

22 lines
714 B
MySQL
Raw Normal View History

2022-10-12 12:35:23 +00:00
ALTER TABLE `user_info` ADD COLUMN `images_size_limit` int(11) UNSIGNED NOT NULL DEFAULT 104857600 /* 100 MiB */;
--
-- Table structure for table `users_images`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE IF NOT EXISTS `users_images` (
`id` varchar(30) NOT NULL,
`username` varchar(20) NOT NULL,
`width` int(11) NOT NULL,
`height` int(11) NOT NULL,
`upload_time` datetime NOT NULL,
`size` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `username` (`username`),
KEY `upload_time` (`upload_time`),
KEY `size` (`size`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;