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
1eeb5386
Commit
1eeb5386
authored
Oct 22, 2020
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository_read_only column to Snippets
parent
088803a9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
1 deletion
+18
-1
changelogs/unreleased/vij-add-snippet-repo-readonly.yml
changelogs/unreleased/vij-add-snippet-repo-readonly.yml
+5
-0
db/migrate/20201022080802_add_repository_read_only_to_snippets.rb
...te/20201022080802_add_repository_read_only_to_snippets.rb
+9
-0
db/schema_migrations/20201022080802
db/schema_migrations/20201022080802
+1
-0
db/structure.sql
db/structure.sql
+2
-1
lib/gitlab/import_export/project/import_export.yml
lib/gitlab/import_export/project/import_export.yml
+1
-0
No files found.
changelogs/unreleased/vij-add-snippet-repo-readonly.yml
0 → 100644
View file @
1eeb5386
---
title
:
Add repository_read_only column to Snippets
merge_request
:
45868
author
:
type
:
added
db/migrate/20201022080802_add_repository_read_only_to_snippets.rb
0 → 100644
View file @
1eeb5386
# frozen_string_literal: true
class
AddRepositoryReadOnlyToSnippets
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
add_column
:snippets
,
:repository_read_only
,
:boolean
,
default:
false
,
null:
false
end
end
db/schema_migrations/20201022080802
0 → 100644
View file @
1eeb5386
809d93d367ff9310063904ee3c266914311ef54e8c7f9d6d7fd924d25890bf19
\ No newline at end of file
db/structure.sql
View file @
1eeb5386
...
...
@@ -16143,7 +16143,8 @@ CREATE TABLE snippets (
description_html
text
,
encrypted_secret_token
character
varying
(
255
),
encrypted_secret_token_iv
character
varying
(
255
),
secret
boolean
DEFAULT
false
NOT
NULL
secret
boolean
DEFAULT
false
NOT
NULL
,
repository_read_only
boolean
DEFAULT
false
NOT
NULL
);
CREATE
SEQUENCE
snippets_id_seq
...
...
lib/gitlab/import_export/project/import_export.yml
View file @
1eeb5386
...
...
@@ -185,6 +185,7 @@ excluded_attributes:
-
:secret
-
:encrypted_secret_token
-
:encrypted_secret_token_iv
-
:repository_read_only
merge_request_diff
:
-
:external_diff
-
:stored_externally
...
...
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