Commit 0c81941b authored by Tiger Watson's avatar Tiger Watson

Merge branch 'add-prevent-sharing-groups-to-namespace-settings' into 'master'

Add Prevent Sharing Groups Column to Namespace Settings Table

See merge request gitlab-org/gitlab!62731
parents 02827704 a52e7d80
# frozen_string_literal: true
class AddPreventSharingGroupsOutsideHierarchyToNamespaceSettings < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
def up
with_lock_retries do
add_column :namespace_settings, :prevent_sharing_groups_outside_hierarchy, :boolean, null: false, default: false
end
end
def down
with_lock_retries do
remove_column :namespace_settings, :prevent_sharing_groups_outside_hierarchy
end
end
end
56efe7709f07ffe198b4a2068c7e4b1ba8507a878cbc9ac3b1b30a334cbd83ca
\ No newline at end of file
......@@ -14964,6 +14964,7 @@ CREATE TABLE namespace_settings (
delayed_project_removal boolean,
resource_access_token_creation_allowed boolean DEFAULT true NOT NULL,
lock_delayed_project_removal boolean DEFAULT false NOT NULL,
prevent_sharing_groups_outside_hierarchy boolean DEFAULT false NOT NULL,
CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255))
);
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