From 2fbc050fa8ec3a62812811115fdbf3c83218b405 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 30 Nov 2022 12:55:38 +0800 Subject: [PATCH] =?UTF-8?q?sql=E6=96=87=E4=BB=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/db/V8.0__create_reminders.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renren-admin/src/main/resources/db/V8.0__create_reminders.sql b/renren-admin/src/main/resources/db/V8.0__create_reminders.sql index c16dd787..3af8aaf8 100644 --- a/renren-admin/src/main/resources/db/V8.0__create_reminders.sql +++ b/renren-admin/src/main/resources/db/V8.0__create_reminders.sql @@ -12,7 +12,7 @@ CREATE TABLE `t_reminders` ( `additional1` varchar(255) NULL COMMENT '附加备用字段1', `additional2` longtext NULL COMMENT '附加备用字段2', `additional3` longtext NULL COMMENT '附加备用字段3', - PRIMARY KEY (`id`), - INDEX `instance_id_key`(`instance_id`) USING BTREE COMMENT '流程实例id', - INDEX `process_task_id_key`(`process_task_id`) USING BTREE COMMENT '流程节点id' -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '催办信息' ROW_FORMAT = DYNAMIC; \ No newline at end of file + PRIMARY KEY (`id`) +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '催办信息' ROW_FORMAT = DYNAMIC; +alter table `t_reminders` ADD INDEX `instance_id`(`instance_id`) USING BTREE comment '催办流程实例ID'; +alter table `t_reminders` ADD INDEX `process_task_id`(`process_task_id`) USING BTREE comment '催办流程节点id'; \ No newline at end of file