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
1ce973b5
Commit
1ce973b5
authored
Feb 10, 2017
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-add-index-to-ci-trigger-requests' into 'master'
Add index to ci_trigger_requests for commit_id See merge request !9124
parents
6588f8ec
41d7b47c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
sh-add-index-to-ci-trigger-requests.yml
...gelogs/unreleased/sh-add-index-to-ci-trigger-requests.yml
+4
-0
20170210075922_add_index_to_ci_trigger_requests_for_commit_id.rb
...0075922_add_index_to_ci_trigger_requests_for_commit_id.rb
+11
-0
schema.rb
db/schema.rb
+3
-1
No files found.
changelogs/unreleased/sh-add-index-to-ci-trigger-requests.yml
0 → 100644
View file @
1ce973b5
---
title
:
Add index to ci_trigger_requests for commit_id
merge_request
:
author
:
db/migrate/20170210075922_add_index_to_ci_trigger_requests_for_commit_id.rb
0 → 100644
View file @
1ce973b5
class
AddIndexToCiTriggerRequestsForCommitId
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_concurrent_index
:ci_trigger_requests
,
:commit_id
end
end
db/schema.rb
View file @
1ce973b5
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201702
06101030
)
do
ActiveRecord
::
Schema
.
define
(
version:
201702
10075922
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -367,6 +367,8 @@ ActiveRecord::Schema.define(version: 20170206101030) do
t
.
integer
"commit_id"
end
add_index
"ci_trigger_requests"
,
[
"commit_id"
],
name:
"index_ci_trigger_requests_on_commit_id"
,
using: :btree
create_table
"ci_triggers"
,
force: :cascade
do
|
t
|
t
.
string
"token"
t
.
integer
"project_id"
...
...
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