Commit 028257ef authored by Erick Bajao's avatar Erick Bajao

Re-arrange index column order

parent 436fc4f9
......@@ -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
......
......@@ -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|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment