Commit graph

2 commits

Author SHA1 Message Date
GitLab Bot
40d3d57413 Add latest changes from gitlab-org/gitlab@master 2019-09-13 18:06:03 +00:00
Luke Duncalfe
177463007b Migrations for adding issue_id to versions table
These migrations do the following:

- Adds a new `issue_id` column to `versions`. This fixes an n+1 problem
  when loading versions for an issue in GraphQL as AR can now load from
  cache
- Change the unique restraint on versions.sha to be scoped to `issue_id`
  as in order to import version data, we need to allow duplicate `sha`
  values for versions
- Update all versions with an `issue_id`

https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
2019-07-29 18:55:19 +00:00