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
47047cea
Commit
47047cea
authored
Jan 21, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop column repository_read_only column in namespaces tables
parent
994c02bf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
27 deletions
+30
-27
changelogs/unreleased/fj-add-repository-read-only-to-groups.yml
...logs/unreleased/fj-add-repository-read-only-to-groups.yml
+0
-5
changelogs/unreleased/revert-3c18ef0b.yml
changelogs/unreleased/revert-3c18ef0b.yml
+5
-0
db/migrate/20210115084949_add_repository_read_only_to_groups.rb
...rate/20210115084949_add_repository_read_only_to_groups.rb
+0
-19
db/migrate/20210121093618_remove_repository_read_only_to_groups.rb
...e/20210121093618_remove_repository_read_only_to_groups.rb
+23
-0
db/schema_migrations/20210115084949
db/schema_migrations/20210115084949
+0
-1
db/schema_migrations/20210121093618
db/schema_migrations/20210121093618
+1
-0
db/structure.sql
db/structure.sql
+1
-2
No files found.
changelogs/unreleased/fj-add-repository-read-only-to-groups.yml
deleted
100644 → 0
View file @
994c02bf
---
title
:
Add repository_read_only column to the Namespace table
merge_request
:
51800
author
:
type
:
added
changelogs/unreleased/revert-3c18ef0b.yml
0 → 100644
View file @
47047cea
---
title
:
Drop repository_read_only column from namespaces table
merge_request
:
52181
author
:
type
:
changed
db/migrate/20210115084949_add_repository_read_only_to_groups.rb
deleted
100644 → 0
View file @
994c02bf
# 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/migrate/20210121093618_remove_repository_read_only_to_groups.rb
0 → 100644
View file @
47047cea
# frozen_string_literal: true
class
RemoveRepositoryReadOnlyToGroups
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
if
column_exists?
(
:namespaces
,
:repository_read_only
)
with_lock_retries
do
remove_column
:namespaces
,
:repository_read_only
# rubocop:disable Migration/RemoveColumn
end
end
end
def
down
unless
column_exists?
(
:namespaces
,
:repository_read_only
)
with_lock_retries
do
add_column
:namespaces
,
:repository_read_only
,
:boolean
,
default:
false
,
null:
false
end
end
end
end
db/schema_migrations/20210115084949
deleted
100644 → 0
View file @
994c02bf
09766a70e36d4bbd8ecf7f5bba36c865873c1ac71f7eb8de04f70fd2c4da242e
\ No newline at end of file
db/schema_migrations/20210121093618
0 → 100644
View file @
47047cea
e2be30f71b2a4a410b21e57ee53c3b54cf0214a08bc65cd92b2cb4b93bde9451
\ No newline at end of file
db/structure.sql
View file @
47047cea
...
...
@@ -14355,8 +14355,7 @@ 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
,
repository_read_only
boolean
DEFAULT
false
NOT
NULL
delayed_project_removal
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