From b934e285a27f5073aed55b2aeac05b2b5f5dbbba Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Tue, 24 Aug 2021 10:21:20 +0800 Subject: [PATCH] 2234 --- .../resources/db/migration/V0.0.6__add_staff_org_relation.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/gov-org/gov-org-server/src/main/resources/db/migration/V0.0.6__add_staff_org_relation.sql b/epmet-module/gov-org/gov-org-server/src/main/resources/db/migration/V0.0.6__add_staff_org_relation.sql index c9cb535ea7..cdda3befc2 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/resources/db/migration/V0.0.6__add_staff_org_relation.sql +++ b/epmet-module/gov-org/gov-org-server/src/main/resources/db/migration/V0.0.6__add_staff_org_relation.sql @@ -12,7 +12,7 @@ CREATE TABLE `staff_org_relation` ( `UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人', `UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`ID`) USING BTREE, - KEY `staffid` (`STAFF_ID`) USING BTREE + UNIQUE KEY `unq_staff_id` (`STAFF_ID`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='工作人员注册组织关系表'; INSERT INTO staff_org_relation SELECT