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
68ae21d6
Commit
68ae21d6
authored
Aug 23, 2019
by
Sean Carroll
Committed by
Mayra Cabrera
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant index
parent
24ff249d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
changelogs/unreleased/55360-redundant-index-in-the-releases-table_v2.yml
...leased/55360-redundant-index-in-the-releases-table_v2.yml
+5
-0
db/migrate/20190805140353_remove_rendundant_index_from_releases.rb
...e/20190805140353_remove_rendundant_index_from_releases.rb
+21
-0
db/schema.rb
db/schema.rb
+0
-1
No files found.
changelogs/unreleased/55360-redundant-index-in-the-releases-table_v2.yml
0 → 100644
View file @
68ae21d6
---
title
:
Removed redundant index on releases table
merge_request
:
31487
author
:
type
:
removed
db/migrate/20190805140353_remove_rendundant_index_from_releases.rb
0 → 100644
View file @
68ae21d6
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
RemoveRendundantIndexFromReleases
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
:releases
,
:project_id
end
def
down
add_concurrent_index
:releases
,
:project_id
end
end
db/schema.rb
View file @
68ae21d6
...
@@ -3015,7 +3015,6 @@ ActiveRecord::Schema.define(version: 2019_08_15_093949) do
...
@@ -3015,7 +3015,6 @@ ActiveRecord::Schema.define(version: 2019_08_15_093949) do
t
.
datetime_with_timezone
"released_at"
,
null:
false
t
.
datetime_with_timezone
"released_at"
,
null:
false
t
.
index
[
"author_id"
],
name:
"index_releases_on_author_id"
t
.
index
[
"author_id"
],
name:
"index_releases_on_author_id"
t
.
index
[
"project_id"
,
"tag"
],
name:
"index_releases_on_project_id_and_tag"
t
.
index
[
"project_id"
,
"tag"
],
name:
"index_releases_on_project_id_and_tag"
t
.
index
[
"project_id"
],
name:
"index_releases_on_project_id"
end
end
create_table
"remote_mirrors"
,
id: :serial
,
force: :cascade
do
|
t
|
create_table
"remote_mirrors"
,
id: :serial
,
force: :cascade
do
|
t
|
...
...
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