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
1ff6a8ab
Commit
1ff6a8ab
authored
May 13, 2020
by
Kerri Miller
Committed by
Toon Claes
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'section' to approval_merge_request_rules
parent
2b33257f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
db/migrate/20200513224143_add_section_to_approval_merge_request_rule.rb
...00513224143_add_section_to_approval_merge_request_rule.rb
+21
-0
db/structure.sql
db/structure.sql
+4
-1
No files found.
db/migrate/20200513224143_add_section_to_approval_merge_request_rule.rb
0 → 100644
View file @
1ff6a8ab
# frozen_string_literal: true
class
AddSectionToApprovalMergeRequestRule
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
unless
column_exists?
(
:approval_merge_request_rules
,
:section
)
add_column
:approval_merge_request_rules
,
:section
,
:text
end
add_text_limit
:approval_merge_request_rules
,
:section
,
255
end
def
down
remove_column
:approval_merge_request_rules
,
:section
end
end
db/structure.sql
View file @
1ff6a8ab
...
@@ -479,7 +479,9 @@ CREATE TABLE public.approval_merge_request_rules (
...
@@ -479,7 +479,9 @@ CREATE TABLE public.approval_merge_request_rules (
code_owner
boolean
DEFAULT
false
NOT
NULL
,
code_owner
boolean
DEFAULT
false
NOT
NULL
,
name
character
varying
NOT
NULL
,
name
character
varying
NOT
NULL
,
rule_type
smallint
DEFAULT
1
NOT
NULL
,
rule_type
smallint
DEFAULT
1
NOT
NULL
,
report_type
smallint
report_type
smallint
,
section
text
,
CONSTRAINT
check_6fca5928b2
CHECK
((
char_length
(
section
)
<=
255
))
);
);
CREATE
TABLE
public
.
approval_merge_request_rules_approved_approvers
(
CREATE
TABLE
public
.
approval_merge_request_rules_approved_approvers
(
...
@@ -13832,6 +13834,7 @@ COPY "schema_migrations" (version) FROM STDIN;
...
@@ -13832,6 +13834,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200512164334
20200512164334
20200513160930
20200513160930
20200513171959
20200513171959
20200513224143
20200513234502
20200513234502
20200513235347
20200513235347
20200513235532
20200513235532
...
...
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