BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fbb727db
Commit
fbb727db
authored
Mar 27, 2018
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ab-44467-remove-index' into 'master'
Remove unused index from events table. Closes #44467 See merge request gitlab-org/gitlab-ce!18014
parents
8bce2399
f208411b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
ab-44467-remove-index.yml
changelogs/unreleased/ab-44467-remove-index.yml
+5
-0
20180327101207_remove_index_from_events_table.rb
db/migrate/20180327101207_remove_index_from_events_table.rb
+18
-0
schema.rb
db/schema.rb
+1
-2
No files found.
changelogs/unreleased/ab-44467-remove-index.yml
0 → 100644
View file @
fbb727db
---
title
:
Remove unused index from events table.
merge_request
:
18014
author
:
type
:
other
db/migrate/20180327101207_remove_index_from_events_table.rb
0 → 100644
View file @
fbb727db
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
RemoveIndexFromEventsTable
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
:events
,
:author_id
end
def
down
add_concurrent_index
:events
,
:author_id
end
end
db/schema.rb
View file @
fbb727db
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2018032
3150945
)
do
ActiveRecord
::
Schema
.
define
(
version:
2018032
7101207
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -732,7 +732,6 @@ ActiveRecord::Schema.define(version: 20180323150945) do
add_index
"events"
,
[
"action"
],
name:
"index_events_on_action"
,
using: :btree
add_index
"events"
,
[
"author_id"
,
"project_id"
],
name:
"index_events_on_author_id_and_project_id"
,
using: :btree
add_index
"events"
,
[
"author_id"
],
name:
"index_events_on_author_id"
,
using: :btree
add_index
"events"
,
[
"project_id"
,
"id"
],
name:
"index_events_on_project_id_and_id"
,
using: :btree
add_index
"events"
,
[
"target_type"
,
"target_id"
],
name:
"index_events_on_target_type_and_target_id"
,
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