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
2a24de1e
Commit
2a24de1e
authored
Apr 11, 2019
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore index on services.type
parent
271863a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
db/migrate/20190107151020_add_services_type_index.rb
db/migrate/20190107151020_add_services_type_index.rb
+20
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20190107151020_add_services_type_index.rb
0 → 100644
View file @
2a24de1e
# 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
AddServicesTypeIndex
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:services
,
:type
unless
index_exists?
(
:services
,
:type
)
end
def
down
remove_concurrent_index
:services
,
:type
if
index_exists?
(
:services
,
:type
)
end
end
db/schema.rb
View file @
2a24de1e
...
@@ -2860,6 +2860,7 @@ ActiveRecord::Schema.define(version: 20190404231137) do
...
@@ -2860,6 +2860,7 @@ ActiveRecord::Schema.define(version: 20190404231137) do
t
.
boolean
"confidential_note_events"
,
default:
true
t
.
boolean
"confidential_note_events"
,
default:
true
t
.
index
[
"project_id"
],
name:
"index_services_on_project_id"
,
using: :btree
t
.
index
[
"project_id"
],
name:
"index_services_on_project_id"
,
using: :btree
t
.
index
[
"template"
],
name:
"index_services_on_template"
,
using: :btree
t
.
index
[
"template"
],
name:
"index_services_on_template"
,
using: :btree
t
.
index
[
"type"
],
name:
"index_services_on_type"
,
using: :btree
end
end
create_table
"shards"
,
force: :cascade
do
|
t
|
create_table
"shards"
,
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