Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a52e7d80
Commit
a52e7d80
authored
Jun 03, 2021
by
Jason Goodman
Committed by
Tiger Watson
Jun 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Prevent Sharing Groups Column to Namespace Settings Table
parent
1779781b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
db/migrate/20210527185542_add_prevent_sharing_groups_outside_hierarchy_to_namespace_settings.rb
...sharing_groups_outside_hierarchy_to_namespace_settings.rb
+17
-0
db/schema_migrations/20210527185542
db/schema_migrations/20210527185542
+1
-0
db/structure.sql
db/structure.sql
+1
-0
No files found.
db/migrate/20210527185542_add_prevent_sharing_groups_outside_hierarchy_to_namespace_settings.rb
0 → 100644
View file @
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
db/schema_migrations/20210527185542
0 → 100644
View file @
a52e7d80
56efe7709f07ffe198b4a2068c7e4b1ba8507a878cbc9ac3b1b30a334cbd83ca
\ No newline at end of file
db/structure.sql
View file @
a52e7d80
...
...
@@ -14954,6 +14954,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))
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment