Skip to content

Add a composite primary key for diff files

Nick Thomas requested to merge (removed):52568-composite-key-for-diffs into master

What does this MR do?

Configures a composite primary key for merge request diff files

We don't actually use this at present, but it allows Rails to reliably update or delete a single row in the merge_request_diff_files table, which seems like a good thing to have for console manipulations and future functionality.

I added this during a WIP stage of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24276 - I may not need it for that functionality in the end, but I thought I'd split it out and get it merged separately either way.

What are the relevant issue numbers?

Related to #52568 (closed)

Does this MR meet the acceptance criteria?

Merge request reports