Commit fbbaff4a authored by DJ Mountney's avatar DJ Mountney

Fixing two migrations that could not be rolled back

when rolling back from 9-0-stable to 8.17.3
parent 8fddde5b
......@@ -3,6 +3,6 @@ class DropIndexForBuildsProjectStatus < ActiveRecord::Migration
DOWNTIME = false
def change
remove_index(:ci_commits, [:gl_project_id, :status])
remove_index(:ci_commits, column: [:gl_project_id, :status])
end
end
......@@ -5,7 +5,11 @@ class AddOwnerIdForeignKey < ActiveRecord::Migration
disable_ddl_transaction!
def change
def up
add_concurrent_foreign_key :ci_triggers, :users, column: :owner_id, on_delete: :cascade
end
def down
remove_foreign_key :ci_triggers, column: :owner_id
end
end
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