Commit a52e7d80 authored by Jason Goodman's avatar Jason Goodman Committed by Tiger Watson

Add Prevent Sharing Groups Column to Namespace Settings Table

parent 1779781b
# 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
...@@ -14954,6 +14954,7 @@ CREATE TABLE namespace_settings ( ...@@ -14954,6 +14954,7 @@ CREATE TABLE namespace_settings (
delayed_project_removal boolean, delayed_project_removal boolean,
resource_access_token_creation_allowed boolean DEFAULT true NOT NULL, resource_access_token_creation_allowed boolean DEFAULT true NOT NULL,
lock_delayed_project_removal boolean DEFAULT false 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)) 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