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
028257ef
Commit
028257ef
authored
Mar 06, 2020
by
Erick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-arrange index column order
parent
436fc4f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20200204131831_create_daily_report_results.rb
db/migrate/20200204131831_create_daily_report_results.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20200204131831_create_daily_report_results.rb
View file @
028257ef
...
...
@@ -14,7 +14,7 @@ class CreateDailyReportResults < ActiveRecord::Migration[6.0]
t
.
string
:title
,
null:
false
# rubocop:disable Migration/AddLimitToStringColumns
t
.
index
:last_pipeline_id
t
.
index
[
:project_id
,
:ref_path
,
:param
,
:
title
,
:date
],
name:
'index_daily_build_report_metrics_unique_columns'
,
unique:
true
,
order:
{
date: :desc
}
t
.
index
[
:project_id
,
:ref_path
,
:param
,
:
date
,
:title
],
name:
'index_daily_report_results_unique_columns'
,
unique:
true
t
.
foreign_key
:projects
,
on_delete: :cascade
t
.
foreign_key
:ci_pipelines
,
column: :last_pipeline_id
,
on_delete: :cascade
end
...
...
db/schema.rb
View file @
028257ef
...
...
@@ -747,7 +747,7 @@ ActiveRecord::Schema.define(version: 2020_03_13_123934) do
t
.
string
"ref_path"
,
null:
false
t
.
string
"title"
,
null:
false
t
.
index
[
"last_pipeline_id"
],
name:
"index_ci_daily_report_results_on_last_pipeline_id"
t
.
index
[
"project_id"
,
"ref_path"
,
"param"
,
"
title"
,
"date"
],
name:
"index_daily_build_report_metrics_unique_columns"
,
unique:
true
,
order:
{
date: :desc
}
t
.
index
[
"project_id"
,
"ref_path"
,
"param"
,
"
date"
,
"title"
],
name:
"index_daily_report_results_unique_columns"
,
unique:
true
end
create_table
"ci_group_variables"
,
id: :serial
,
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