Commit graph

2 commits

Author SHA1 Message Date
Sean McGivern
4768a1e26f Set merge_request_diff_id on MR when creating
Once we migrate existing MRs to have this column, we will be able to get the
latest diff for a single merge request more efficiently, and (more importantly)
get all latest diffs for a collection of MRs efficiently.
2017-11-02 16:09:56 +00:00
Sean McGivern
d8299e320e Add a column linking an MR to its diff
We already had this the other way around (merge_request_diffs.merge_request_id),
but this is needed to gather only the most recent diffs for a set of merge
requests.
2017-11-02 16:09:56 +00:00