Skip to content
代码片段 群组 项目
未验证 提交 f1931a7f 编辑于 作者: Tianwen Chen's avatar Tianwen Chen 提交者: GitLab
浏览文件

Fix to remove foreign key for geo_event_log

上级 c7e15a3b
No related branches found
No related tags found
无相关合并请求
......@@ -19,7 +19,7 @@ class RemoveForeignKeysGeoEventLog < Gitlab::Database::Migration[2.2]
{
to_table: :geo_repository_updated_events,
options: {
name: :fk_78a6492f68,
name: :fk_rails_78a6492f68,
column: [:repository_updated_event_id],
on_delete: :cascade
}
......@@ -64,7 +64,7 @@ def up
remove_foreign_key(
FROM_TABLE,
fk[:to_table],
name: fk[:options][:name],
column: fk[:options][:column].first.to_s,
if_exists: true
)
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册