Skip to content

Commit

Permalink
⚡ add index on dept.pid (elunez#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtune authored and elunez committed Jan 16, 2020
1 parent 06992e0 commit 5f8fa1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/eladmin.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

-- ----------------------------
Expand Down

0 comments on commit 5f8fa1f

Please sign in to comment.