work/data/2.1.0/2.0.0 - 2.1.0.sql
vilson 8fc8650bf5 增加父任务路径
Signed-off-by: vilson <545522390@qq.com>
2019-01-24 16:07:28 +08:00

31 lines
2.5 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE `pearproject`.`pear_invite_link` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邀请码',
`create_by` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邀请人',
`invite_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接类型',
`source_code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源编码',
`create_time` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
`over_time` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过期时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邀请链接表' ROW_FORMAT = Compact;
ALTER TABLE `pearproject`.`pear_notify` ADD COLUMN `avatar` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像/图片' AFTER `from_type`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `type` enum('notice','message','task') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '通知类型。通知notice消息message待办task' AFTER `content`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `from` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '发送人id' AFTER `type`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `to` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '送达用户id' AFTER `from`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `action` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'none' COMMENT '场景taskproject' AFTER `send_time`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `terminal` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送终端。pc端project移动端wap' AFTER `action`;
ALTER TABLE `pearproject`.`pear_notify` MODIFY COLUMN `from_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '\'project\',\'system\'' AFTER `terminal`;
ALTER TABLE `pearproject`.`pear_task` ADD COLUMN `path` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '上级任务路径' AFTER `id_num`;
SET FOREIGN_KEY_CHECKS=1;