提交 fbbaff4a 编写于 作者: D DJ Mountney

Fixing two migrations that could not be rolled back

when rolling back from 9-0-stable to 8.17.3
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册