更新数据库文件

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-02-16 12:40:43 +08:00
parent 9a554244cb
commit 655e758aae
4 changed files with 2801 additions and 15 deletions

View File

@ -89,6 +89,8 @@ class TaskTag extends BasicApi
/**
* 删除标签
* @return void
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function delete()
{

View File

@ -0,0 +1,9 @@
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `pearproject`.`pear_task_tag` ENGINE = InnoDB, COMMENT = '任务标签表', ROW_FORMAT = Compact;
ALTER TABLE `pearproject`.`pear_task_tag` DROP COLUMN `color_value`;
ALTER TABLE `pearproject`.`pear_task_to_tag` ENGINE = InnoDB, COMMENT = '任务标签映射表', ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS=1;

2773
data/2.2.0/pearproject.sql Normal file

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
Target Server Version : 50640
File Encoding : 65001
Date: 26/01/2019 07:30:05
Date: 16/02/2019 12:39:44
*/
SET NAMES utf8mb4;
@ -245,7 +245,7 @@ CREATE TABLE `pear_member` (
-- Records of pear_member
-- ----------------------------
INSERT INTO `pear_member` VALUES (586, 'Alians', 'e10adc3949ba59abbe56e057f20f883e', 'Alians', '18377893857', 'vilson', NULL, 1, '2019-01-26 07:29:41', '', 'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png', NULL, 0, 0, 0, NULL, NULL, 'vilson@qq.com', 'kqdcn2w40p58r31zyo6efjib');
INSERT INTO `pear_member` VALUES (582, '123456', 'e10adc3949ba59abbe56e057f20f883e', 'vilson', '18681140825', 'juli', NULL, 1, '2019-01-23 15:23:16', '', 'https://static.vilson.xyz/cover.png', '', 0, 0, 0, NULL, NULL, '545522390@qq.com', '6v7be19pwman2fird04gqu53');
INSERT INTO `pear_member` VALUES (582, '123456', 'e10adc3949ba59abbe56e057f20f883e', 'vilson', '18681140825', 'juli', NULL, 1, '2019-02-16 10:22:45', '', 'https://static.vilson.xyz/cover.png', '', 0, 0, 0, NULL, NULL, '545522390@qq.com', '6v7be19pwman2fird04gqu53');
INSERT INTO `pear_member` VALUES (587, 'Chihiro', 'e10adc3949ba59abbe56e057f20f883e', 'Chihiro', '18278881051', 'Chihiro', NULL, 1, '2019-01-24 11:15:09', '', 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png', NULL, 0, 0, 0, NULL, NULL, '741648282@qq.com', 'y680trgedcavbhnz24u7i5m3');
INSERT INTO `pear_member` VALUES (588, 'Json', 'f9f02f39d6d2048d760d8add98265ba1', 'Json', '18681140821', 'Json', '2019-01-05 21:57:01', 1, '2019-01-06 08:21:42', '', 'https://static.vilson.xyz/cover.png', NULL, 0, 0, 0, NULL, NULL, '123456@qq.com', 'vys8gd32cfui6brtwzj4pqho');
@ -2722,23 +2722,15 @@ CREATE TABLE `pear_task_tag` (
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签名',
`color` enum('blue','red','orange','green','brown','purple') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'blue' COMMENT '颜色',
`create_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`color_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务标签表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_tag
-- ----------------------------
INSERT INTO `pear_task_tag` VALUES (1, NULL, '1292', 'dd', 'orange', '2018-07-27 16:06:08', '#ff9900');
INSERT INTO `pear_task_tag` VALUES (2, NULL, '1292', 'ffs', 'green', '2018-07-27 16:06:14', '#19be6b');
INSERT INTO `pear_task_tag` VALUES (3, NULL, '1292', '11', 'blue', '2018-09-07 23:22:11', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (4, NULL, '1292', '22', 'blue', '2018-09-07 23:22:12', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (5, NULL, '1292', '33', 'blue', '2018-09-07 23:22:13', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (6, NULL, '1292', '44', 'blue', '2018-09-07 23:22:14', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (7, NULL, '1292', '55', 'blue', '2018-09-07 23:22:15', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (8, NULL, '1292', '6666666666666', 'blue', '2018-09-07 23:22:17', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (9, NULL, '1292', '777777777', 'blue', '2018-09-07 23:22:19', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (10, NULL, '1292', '8888888', 'blue', '2018-09-07 23:22:22', '#2d8cf0');
INSERT INTO `pear_task_tag` VALUES (1, '9gevjxtloy5nrw2shbi8a1ku', 'mo4uqwfb06dxv8ez2spkl3rg', 'Android', 'blue', '2018-07-27 16:06:08');
INSERT INTO `pear_task_tag` VALUES (2, 'kjw19pzil4af5qcnry0gh6od', 'mo4uqwfb06dxv8ez2spkl3rg', 'IOS', 'green', '2018-07-27 16:06:14');
INSERT INTO `pear_task_tag` VALUES (3, 'suply7ri2t3x18kgqwbvh4cn', 'mo4uqwfb06dxv8ez2spkl3rg', 'Web', 'orange', '2018-09-07 23:22:11');
-- ----------------------------
-- Table structure for pear_task_to_tag
@ -2751,7 +2743,17 @@ CREATE TABLE `pear_task_to_tag` (
`tag_code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
`create_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 95 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Fixed;
) ENGINE = InnoDB AUTO_INCREMENT = 138 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务标签映射表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_to_tag
-- ----------------------------
INSERT INTO `pear_task_to_tag` VALUES (126, '89ihyz3a7epcgjvruq16tfdw', '2bn918l6ejyzousa73dkpgci', 'suply7ri2t3x18kgqwbvh4cn', '2019-02-16 11:20:03');
INSERT INTO `pear_task_to_tag` VALUES (133, 'd2iz35y80jlpswgrn791mktb', '2bn918l6ejyzousa73dkpgci', 'kjw19pzil4af5qcnry0gh6od', '2019-02-16 12:14:34');
INSERT INTO `pear_task_to_tag` VALUES (134, 'uepgxk3voabzh0jicfmnyq6w', '2bn918l6ejyzousa73dkpgci', '9gevjxtloy5nrw2shbi8a1ku', '2019-02-16 12:14:34');
INSERT INTO `pear_task_to_tag` VALUES (135, '32uog4ewka9cdv5xm6jfybs8', '6hj43ueim2bk187sqzcoy59v', '9gevjxtloy5nrw2shbi8a1ku', '2019-02-16 12:15:52');
INSERT INTO `pear_task_to_tag` VALUES (136, '9k4mq1fwpc8xzebodv0i2jnr', '6hj43ueim2bk187sqzcoy59v', 'kjw19pzil4af5qcnry0gh6od', '2019-02-16 12:15:53');
INSERT INTO `pear_task_to_tag` VALUES (137, 'yfiowudeh7vx25gnaj9l6sz1', '6hj43ueim2bk187sqzcoy59v', 'suply7ri2t3x18kgqwbvh4cn', '2019-02-16 12:15:53');
-- ----------------------------
-- Table structure for pear_user_token