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
76f1a333
Commit
76f1a333
authored
Jan 15, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository_read_only column to groups
parent
b842ce34
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
changelogs/unreleased/fj-add-repository-read-only-to-groups.yml
...logs/unreleased/fj-add-repository-read-only-to-groups.yml
+5
-0
db/migrate/20210115084949_add_repository_read_only_to_groups.rb
...rate/20210115084949_add_repository_read_only_to_groups.rb
+19
-0
db/schema_migrations/20210115084949
db/schema_migrations/20210115084949
+1
-0
db/structure.sql
db/structure.sql
+2
-1
No files found.
changelogs/unreleased/fj-add-repository-read-only-to-groups.yml
0 → 100644
View file @
76f1a333
---
title
:
Add repository_read_only column to the Namespace table
merge_request
:
51800
author
:
type
:
added
db/migrate/20210115084949_add_repository_read_only_to_groups.rb
0 → 100644
View file @
76f1a333
# frozen_string_literal: true
class
AddRepositoryReadOnlyToGroups
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
add_column
:namespaces
,
:repository_read_only
,
:boolean
,
default:
false
,
null:
false
end
end
def
down
with_lock_retries
do
remove_column
:namespaces
,
:repository_read_only
end
end
end
db/schema_migrations/20210115084949
0 → 100644
View file @
76f1a333
09766a70e36d4bbd8ecf7f5bba36c865873c1ac71f7eb8de04f70fd2c4da242e
\ No newline at end of file
db/structure.sql
View file @
76f1a333
...
...
@@ -14309,7 +14309,8 @@ CREATE TABLE namespaces (
shared_runners_enabled
boolean
DEFAULT
true
NOT
NULL
,
allow_descendants_override_disabled_shared_runners
boolean
DEFAULT
false
NOT
NULL
,
traversal_ids
integer
[]
DEFAULT
'{}'
::
integer
[]
NOT
NULL
,
delayed_project_removal
boolean
DEFAULT
false
NOT
NULL
delayed_project_removal
boolean
DEFAULT
false
NOT
NULL
,
repository_read_only
boolean
DEFAULT
false
NOT
NULL
);
CREATE
SEQUENCE
namespaces_id_seq
...
...
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