更新字段

This commit is contained in:
liaofei 2019-12-21 15:45:36 +08:00
parent 4e0fc47144
commit 83e6b77e58
2 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,7 @@ CREATE TABLE IF NOT EXISTS `eb_article_content` (
CREATE TABLE IF NOT EXISTS `eb_cache` (
`key` varchar(32) NOT NULL,
`result` text COMMENT '缓存数据',
`expire_time` int(10) NOT NULL DEFAULT '0' COMMENT '失效时间0=永久',
`add_time` int(10) DEFAULT NULL COMMENT '缓存时间',
PRIMARY KEY (`key`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信缓存表';

5
crmeb/update.sql Normal file
View File

@ -0,0 +1,5 @@
-- 增加索引,增加失效时间
ALTER TABLE `eb_cache` ADD `expire_time` INT NOT NULL DEFAULT '0' COMMENT '失效时间0=永久' AFTER `result`;
ALTER TABLE `eb_cache` ADD INDEX(`key`);
-- 调整token字段位500
ALTER TABLE `eb_user_token` CHANGE `token` `token` VARCHAR(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'token';