fix key length

This commit is contained in:
walkor 2023-03-25 08:27:14 +08:00
parent 1d3938a1dd
commit 095c5cd81c

View File

@ -68,17 +68,17 @@ CREATE TABLE IF NOT EXISTS `wa_rules` (
CREATE TABLE IF NOT EXISTS `wa_uploads` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(255) NOT NULL COMMENT '名称',
`name` varchar(128) NOT NULL COMMENT '名称',
`url` varchar(255) NOT NULL COMMENT '文件',
`admin_id` int(11) DEFAULT NULL COMMENT '管理员',
`file_size` int(11) NOT NULL COMMENT '文件大小',
`mime_type` varchar(255) NOT NULL COMMENT 'mime类型',
`image_width` int(11) DEFAULT NULL COMMENT '图片宽度',
`image_height` int(11) DEFAULT NULL COMMENT '图片高度',
`ext` varchar(255) NOT NULL COMMENT '扩展名',
`ext` varchar(128) NOT NULL COMMENT '扩展名',
`storage` varchar(255) NOT NULL DEFAULT 'local' COMMENT '存储位置',
`created_at` date DEFAULT NULL COMMENT '上传时间',
`category` varchar(255) DEFAULT NULL COMMENT '类别',
`category` varchar(128) DEFAULT NULL COMMENT '类别',
`updated_at` date DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `category` (`category`),