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
57c47fc0
Commit
57c47fc0
authored
Sep 14, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index names to migrations
parent
bd223c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
db/migrate/20200914104642_modify_merge_request_api_index.rb
db/migrate/20200914104642_modify_merge_request_api_index.rb
+2
-2
db/migrate/20200914105202_remove_old_merge_request_api_index.rb
...rate/20200914105202_remove_old_merge_request_api_index.rb
+2
-2
No files found.
db/migrate/20200914104642_modify_merge_request_api_index.rb
View file @
57c47fc0
...
...
@@ -11,10 +11,10 @@ class ModifyMergeRequestApiIndex < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def
up
add_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
,
:id
]
add_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
,
:id
]
,
name: :index_merge_requests_on_target_project_id_and_created_at_and_id
end
def
down
remove_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
,
:id
]
remove_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
,
:id
]
,
name: :index_merge_requests_on_target_project_id_and_created_at_and_id
end
end
db/migrate/20200914105202_remove_old_merge_request_api_index.rb
View file @
57c47fc0
...
...
@@ -8,10 +8,10 @@ class RemoveOldMergeRequestApiIndex < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def
up
remove_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
]
remove_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
]
,
name: :index_merge_requests_target_project_id_created_at
end
def
down
add_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
]
add_concurrent_index
:merge_requests
,
[
:target_project_id
,
:created_at
]
,
name: :index_merge_requests_target_project_id_created_at
end
end
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