Skip to content
Snippets Groups Projects
Commit 93241149 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Make pipeline / stage position index not unique

parent e542583e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,7 +6,7 @@ class AddIndexToStagesPosition < ActiveRecord::Migration
disable_ddl_transaction!
 
def up
add_concurrent_index :ci_stages, [:pipeline_id, :position], unique: true
add_concurrent_index :ci_stages, [:pipeline_id, :position]
end
 
def down
Loading
Loading
Loading
Loading
@@ -518,7 +518,7 @@ ActiveRecord::Schema.define(version: 20180530135500) do
end
 
add_index "ci_stages", ["pipeline_id", "name"], name: "index_ci_stages_on_pipeline_id_and_name", unique: true, using: :btree
add_index "ci_stages", ["pipeline_id", "position"], name: "index_ci_stages_on_pipeline_id_and_position", unique: true, using: :btree
add_index "ci_stages", ["pipeline_id", "position"], name: "index_ci_stages_on_pipeline_id_and_position", using: :btree
add_index "ci_stages", ["pipeline_id"], name: "index_ci_stages_on_pipeline_id", using: :btree
add_index "ci_stages", ["project_id"], name: "index_ci_stages_on_project_id", using: :btree
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment