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
4ee90755
Commit
4ee90755
authored
Jan 22, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository_read_only column to NamespaceSettings table
parent
e716fbf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
changelogs/unreleased/299052-fj-add-repository-read-only-column-to-namespace-settings.yml
...add-repository-read-only-column-to-namespace-settings.yml
+5
-0
db/migrate/20210122073805_add_repository_read_only_to_namespace_settings.rb
...2073805_add_repository_read_only_to_namespace_settings.rb
+19
-0
db/schema_migrations/20210122073805
db/schema_migrations/20210122073805
+1
-0
db/structure.sql
db/structure.sql
+1
-0
No files found.
changelogs/unreleased/299052-fj-add-repository-read-only-column-to-namespace-settings.yml
0 → 100644
View file @
4ee90755
---
title
:
Add repository_read_only column to NamespaceSettings table
merge_request
:
52300
author
:
type
:
added
db/migrate/20210122073805_add_repository_read_only_to_namespace_settings.rb
0 → 100644
View file @
4ee90755
# frozen_string_literal: true
class
AddRepositoryReadOnlyToNamespaceSettings
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
add_column
:namespace_settings
,
:repository_read_only
,
:boolean
,
default:
false
,
null:
false
end
end
def
down
with_lock_retries
do
remove_column
:namespace_settings
,
:repository_read_only
end
end
end
db/schema_migrations/20210122073805
0 → 100644
View file @
4ee90755
f5231b1eec17ea1a67f2d2f4ca759314afb85b2c8fb431e3303d530d44bdb1ef
\ No newline at end of file
db/structure.sql
View file @
4ee90755
...
@@ -14310,6 +14310,7 @@ CREATE TABLE namespace_settings (
...
@@ -14310,6 +14310,7 @@ CREATE TABLE namespace_settings (
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
,
allow_mfa_for_subgroups
boolean
DEFAULT
true
NOT
NULL
,
default_branch_name
text
,
default_branch_name
text
,
repository_read_only
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
))
);
);
...
...
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