Skip to content
代码片段 群组 项目
未验证 提交 81b07a07 编辑于 作者: Dylan Griffith's avatar Dylan Griffith 提交者: GitLab
浏览文件

Merge branch 'ia-add-anti-abuse-settings' into 'master'

Add anti_abuse_settings column to application_settings table

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/179596



Merged-by: default avatarDylan Griffith <dyl.griffith@gmail.com>
Approved-by: default avatarBojan Marjanovic <bmarjanovic@gitlab.com>
Approved-by: default avatarDylan Griffith <dyl.griffith@gmail.com>
Co-authored-by: default avatarimand3r <ianderson@gitlab.com>
No related branches found
No related tags found
无相关合并请求
---
api_type:
attr: anti_abuse_settings
clusterwide: true
column: anti_abuse_settings
db_type: jsonb
default: "'{}'::jsonb"
description: Configuration settings related to anti-abuse features
encrypted: false
gitlab_com_different_than_default: true
jihu: false
not_null: true
# frozen_string_literal: true
class AddAntiAbuseSettingsToApplicationSettings < Gitlab::Database::Migration[2.2]
milestone '17.9'
disable_ddl_transaction!
def up
add_column :application_settings, :anti_abuse_settings, :jsonb, default: {}, null: false
add_check_constraint(
:application_settings,
"(jsonb_typeof(anti_abuse_settings) = 'object')",
'check_anti_abuse_settings_is_hash'
)
end
def down
remove_column :application_settings, :anti_abuse_settings
end
end
94f1f49da59a704cb2840afe857d6396145ba91343afa9267cc9337bde55ee91
\ No newline at end of file
......@@ -7964,6 +7964,7 @@ CREATE TABLE application_settings (
elasticsearch_max_code_indexing_concurrency integer DEFAULT 30 NOT NULL,
observability_settings jsonb DEFAULT '{}'::jsonb NOT NULL,
search jsonb DEFAULT '{}'::jsonb NOT NULL,
anti_abuse_settings jsonb DEFAULT '{}'::jsonb NOT NULL,
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),
CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit CHECK ((char_length(external_pipeline_validation_service_url) <= 255)),
......@@ -8011,6 +8012,7 @@ CREATE TABLE application_settings (
CONSTRAINT check_9c6c447a13 CHECK ((char_length(maintenance_mode_message) <= 255)),
CONSTRAINT check_a5704163cc CHECK ((char_length(secret_detection_revocation_token_types_url) <= 255)),
CONSTRAINT check_ae53cf7f82 CHECK ((char_length(vertex_ai_host) <= 255)),
CONSTRAINT check_anti_abuse_settings_is_hash CHECK ((jsonb_typeof(anti_abuse_settings) = 'object'::text)),
CONSTRAINT check_app_settings_namespace_storage_forks_cost_factor_range CHECK (((namespace_storage_forks_cost_factor >= (0)::double precision) AND (namespace_storage_forks_cost_factor <= (1)::double precision))),
CONSTRAINT check_app_settings_sentry_clientside_traces_sample_rate_range CHECK (((sentry_clientside_traces_sample_rate >= (0)::double precision) AND (sentry_clientside_traces_sample_rate <= (1)::double precision))),
CONSTRAINT check_application_settings_clickhouse_is_hash CHECK ((jsonb_typeof(clickhouse) = 'object'::text)),
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册