Commit ca0dbde1 authored by Tiger Watson's avatar Tiger Watson

Merge branch '215697-allow-groups-to-disable-2fa-requirement-for-subgroups-migration' into 'master'

Allow groups to disable 2FA requirement for subgroups - setting migration

See merge request gitlab-org/gitlab!41760
parents e5feb706 523bbd73
---
title: Add namespace setting to allow to mark if parent group allow subgroups to require
2FA
merge_request: 41760
author:
type: added
# frozen_string_literal: true
class AddNewSettingToNamespaceSetting < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespace_settings, :allow_mfa_for_subgroups, :boolean, default: true, null: false
end
end
def down
with_lock_retries do
remove_column :namespace_settings, :allow_mfa_for_subgroups
end
end
end
327cd19cd6c0f273aea61ffebf10046fb7229516bc4ed28f3c0290bb3ad04755
\ No newline at end of file
......@@ -13562,7 +13562,8 @@ CREATE TABLE namespace_settings (
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
namespace_id integer NOT NULL,
prevent_forking_outside_group boolean DEFAULT false NOT NULL
prevent_forking_outside_group boolean DEFAULT false NOT NULL,
allow_mfa_for_subgroups boolean DEFAULT true NOT NULL
);
CREATE TABLE namespace_statistics (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment