提交 253b61d2 编写于 作者: S Stan Hu

Merge branch 'fix-migration-rc1-rollback' into 'master'

Fixing two migrations that could not be rolled back

See merge request !9953
......@@ -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.
先完成此消息的编辑!
想要评论请 注册