Commit 5f8fa1f2 authored by wtune's avatar wtune Committed by elunez
Browse files

add index on dept.pid (#254)

parent 06992e06
......@@ -80,7 +80,8 @@ CREATE TABLE `dept` (
`pid` bigint(20) NOT NULL COMMENT '上级部门',
`enabled` bit(1) NOT NULL COMMENT '状态',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
PRIMARY KEY (`id`) USING BTREE
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_pid` (`pid`)
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门' ROW_FORMAT = Compact;
-- ----------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment