Skip to content

Commit

Permalink
feat: variable增加readOnly属性 TencentBlueKing#4682
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjiao-heart committed Jul 16, 2021
1 parent f1087af commit b336f52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions support-files/sql/2007_ci_process-update_v1.6_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ BEGIN

END IF;

IF NOT EXISTS(SELECT 1
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = db
AND TABLE_NAME = 'T_PIPELINE_BUILD_VAR'
AND COLUMN_NAME = 'READ_ONLY') THEN
ALTER TABLE T_PIPELINE_BUILD_VAR ADD COLUMN READ_ONLY BIT(1) NULL COMMENT '是否只读';
END IF;

COMMIT;
END <CI_UBF>
DELIMITER ;
Expand Down

0 comments on commit b336f52

Please sign in to comment.