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
Jérome Perrin
gitlab-ce
Commits
ad4b6302
Commit
ad4b6302
authored
Apr 25, 2017
by
James Lopez
Committed by
Douwe Maan
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index to webhooks type column
parent
d1e57022
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
changelogs/unreleased/fix-web_hooks-index.yml
changelogs/unreleased/fix-web_hooks-index.yml
+4
-0
db/migrate/20170424142900_add_index_to_web_hooks_type.rb
db/migrate/20170424142900_add_index_to_web_hooks_type.rb
+15
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
changelogs/unreleased/fix-web_hooks-index.yml
0 → 100644
View file @
ad4b6302
---
title
:
Add index to webhooks type column
merge_request
:
author
:
db/migrate/20170424142900_add_index_to_web_hooks_type.rb
0 → 100644
View file @
ad4b6302
class
AddIndexToWebHooksType
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:web_hooks
,
:type
end
def
down
remove_concurrent_index
:web_hooks
,
:type
end
end
db/schema.rb
View file @
ad4b6302
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017042
3064036
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017042
4142900
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1371,6 +1371,7 @@ ActiveRecord::Schema.define(version: 20170423064036) do
end
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_index
"web_hooks"
,
[
"type"
],
name:
"index_web_hooks_on_type"
,
using: :btree
add_foreign_key
"boards"
,
"projects"
add_foreign_key
"chat_teams"
,
"namespaces"
,
on_delete: :cascade
...
...
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