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
333c4f61
Commit
333c4f61
authored
Sep 18, 2019
by
Pavel Shutsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add temporary index for PA data migration
parent
cd0d97c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
db/migrate/20190918104212_add_merge_request_metrics_merged_at_index.rb
...190918104212_add_merge_request_metrics_merged_at_index.rb
+17
-0
db/post_migrate/20190918104222_schedule_productivity_analytics_backfill.rb
...0190918104222_schedule_productivity_analytics_backfill.rb
+0
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20190918104212_add_merge_request_metrics_merged_at_index.rb
0 → 100644
View file @
333c4f61
# frozen_string_literal: true
class
AddMergeRequestMetricsMergedAtIndex
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:merge_request_metrics
,
[
:merged_at
,
:id
]
end
def
down
remove_concurrent_index
:merge_request_metrics
,
[
:merged_at
,
:id
]
end
end
db/post_migrate/20190
724091326
_schedule_productivity_analytics_backfill.rb
→
db/post_migrate/20190
918104222
_schedule_productivity_analytics_backfill.rb
View file @
333c4f61
File moved
db/schema.rb
View file @
333c4f61
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2019_09_1
4_223900
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019_09_1
8_104222
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
@@ -2120,6 +2120,7 @@ ActiveRecord::Schema.define(version: 2019_09_14_223900) do
t
.
index
[
"latest_closed_by_id"
],
name:
"index_merge_request_metrics_on_latest_closed_by_id"
t
.
index
[
"merge_request_id"
,
"merged_at"
],
name:
"index_merge_request_metrics_on_merge_request_id_and_merged_at"
,
where:
"(merged_at IS NOT NULL)"
t
.
index
[
"merge_request_id"
],
name:
"index_merge_request_metrics"
t
.
index
[
"merged_at"
,
"id"
],
name:
"index_merge_request_metrics_on_merged_at_and_id"
t
.
index
[
"merged_by_id"
],
name:
"index_merge_request_metrics_on_merged_by_id"
t
.
index
[
"pipeline_id"
],
name:
"index_merge_request_metrics_on_pipeline_id"
end
...
...
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