Skip to content
代码片段 群组 项目
提交 cd91b346 编辑于 作者: Mayra Cabrera's avatar Mayra Cabrera
浏览文件

Merge branch '360149_make_fingerprint_nullable' into 'master'

Make fingerprint nullable for group_deploy_keys table

See merge request gitlab-org/gitlab!85595
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class MakeFingerprintNullableForGroupDeployKey < Gitlab::Database::Migration[2.0]
def up
change_column_null :group_deploy_keys, :fingerprint, true
end
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
end
end
33f834b8588ad7a618f39668b2546d0945d283c005e6b822a870d6bf5a8ea03d
\ No newline at end of file
...@@ -15665,7 +15665,7 @@ CREATE TABLE group_deploy_keys ( ...@@ -15665,7 +15665,7 @@ CREATE TABLE group_deploy_keys (
expires_at timestamp with time zone, expires_at timestamp with time zone,
key text NOT NULL, key text NOT NULL,
title text, title text,
fingerprint text NOT NULL, fingerprint text,
fingerprint_sha256 bytea, fingerprint_sha256 bytea,
CONSTRAINT check_cc0365908d CHECK ((char_length(title) <= 255)), CONSTRAINT check_cc0365908d CHECK ((char_length(title) <= 255)),
CONSTRAINT check_e4526dcf91 CHECK ((char_length(fingerprint) <= 255)), CONSTRAINT check_e4526dcf91 CHECK ((char_length(fingerprint) <= 255)),
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册