1 Star 0 Fork 0

mtr2015/tp220181010

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
addons.sql 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
mtr2015 提交于 2018-10-17 15:25 . 第二种addons机制。。。
CREATE TABLE `addons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(40) NOT NULL COMMENT '插件名或标识',
`title` varchar(20) NOT NULL DEFAULT '' COMMENT '中文名',
`description` text COMMENT '插件描述',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`config` text COMMENT '配置',
`author` varchar(40) DEFAULT '' COMMENT '作者',
`version` varchar(20) DEFAULT '' COMMENT '版本号',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '安装时间',
`has_adminlist` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有后台列表',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='插件表';
CREATE TABLE `hooks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(40) NOT NULL DEFAULT '' COMMENT '钩子名称',
`description` text NOT NULL COMMENT '描述',
`type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`addons` varchar(255) NOT NULL DEFAULT '' COMMENT '钩子挂载的插件 ''''分割',
`status` tinyint(2) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
INSERT INTO `addons` (`id`, `name`, `title`, `description`, `status`, `config`, `author`, `version`, `create_time`, `has_adminlist`) VALUES ('2', 'ex', 'ex插件', 'ex插件简介', '1', NULL, 'byron sampson', '0.1', '1438154545', '0');
INSERT INTO .`hooks` (`id`, `name`, `description`, `type`, `update_time`, `addons`, `status`) VALUES ('21', 'demo', 'demo钩子', '1', '1384481614', 'ex', '1');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mtr2015/tp220181010.git
git@gitee.com:mtr2015/tp220181010.git
mtr2015
tp220181010
tp220181010
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385