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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5d76e091
Commit
5d76e091
authored
Jun 17, 2019
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport approval MR rules report_type migration to CE
parent
89a89b32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb
...174505_add_report_type_to_approval_merge_request_rules.rb
+13
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb
0 → 100644
View file @
5d76e091
# frozen_string_literal: true
class
AddReportTypeToApprovalMergeRequestRules
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
change_table
:approval_merge_request_rules
do
|
t
|
t
.
integer
:report_type
,
limit:
2
end
end
end
db/schema.rb
View file @
5d76e091
...
@@ -248,6 +248,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
...
@@ -248,6 +248,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
t
.
boolean
"code_owner"
,
default:
false
,
null:
false
t
.
boolean
"code_owner"
,
default:
false
,
null:
false
t
.
string
"name"
,
null:
false
t
.
string
"name"
,
null:
false
t
.
integer
"rule_type"
,
limit:
2
,
default:
1
,
null:
false
t
.
integer
"rule_type"
,
limit:
2
,
default:
1
,
null:
false
t
.
integer
"report_type"
,
limit:
2
t
.
index
[
"merge_request_id"
,
"code_owner"
,
"name"
],
name:
"approval_rule_name_index_for_code_owners"
,
unique:
true
,
where:
"(code_owner = true)"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"code_owner"
,
"name"
],
name:
"approval_rule_name_index_for_code_owners"
,
unique:
true
,
where:
"(code_owner = true)"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"code_owner"
],
name:
"index_approval_merge_request_rules_1"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"code_owner"
],
name:
"index_approval_merge_request_rules_1"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"rule_type"
,
"name"
],
name:
"index_approval_rule_name_for_code_owners_rule_type"
,
unique:
true
,
where:
"(rule_type = 2)"
,
using: :btree
t
.
index
[
"merge_request_id"
,
"rule_type"
,
"name"
],
name:
"index_approval_rule_name_for_code_owners_rule_type"
,
unique:
true
,
where:
"(rule_type = 2)"
,
using: :btree
...
...
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