Skip to content

Commit

Permalink
feat:oauth2 增加密码模式 TencentBlueKing#10663
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Sep 20, 2024
1 parent 5b6b4f5 commit 1bdc23c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ BEGIN
AND COLUMN_NAME = 'GROUP_TYPE') THEN
ALTER TABLE T_AUTH_RESOURCE_GROUP_CONFIG ADD COLUMN `GROUP_TYPE` Int(2) NOT NULL DEFAULT 0 COMMENT '用户组类型 0-默认组 1-自定义组' AFTER `CREATE_MODE`;
END IF;

IF NOT EXISTS(SELECT 1
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = db
AND TABLE_NAME = 'T_AUTH_OAUTH2_ACCESS_TOKEN'
AND COLUMN_NAME = 'PASS_WORD') THEN
ALTER TABLE T_AUTH_OAUTH2_ACCESS_TOKEN ADD COLUMN `PASS_WORD` VARCHAR(64) DEFAULT NULL COMMENT '用于密码模式' AFTER `USER_NAME`;
END IF;

COMMIT;
END <CI_UBF>
DELIMITER ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ BEGIN
ADD COLUMN `IAM_TEMPLATE_ID` int(20) DEFAULT NULL COMMENT '人员模板ID';
END IF;

IF NOT EXISTS(SELECT 1
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = db
AND TABLE_NAME = 'T_AUTH_OAUTH2_ACCESS_TOKEN'
AND COLUMN_NAME = 'PASS_WORD') THEN
ALTER TABLE T_AUTH_OAUTH2_ACCESS_TOKEN ADD COLUMN `PASS_WORD` VARCHAR(64) DEFAULT NULL COMMENT '用于密码模式' AFTER `USER_NAME`;
END IF;

COMMIT;
END <CI_UBF>
DELIMITER ;
Expand Down

0 comments on commit 1bdc23c

Please sign in to comment.