gitlab-org--gitlab-foss/lib/tasks/migrate
Sean McGivern 9a73b634ab Add table for files in merge request diffs
This adds an ID-less table containing one row per file, per merge request
diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised
currently, with the advantage that we can easily query the attributes of this
new table.

It does not migrate existing data, so we have fallback code when the legacy
st_diffs column is present instead. For a merge request diff to be valid, it
should have at most one of:

* Rows in this new table, with the correct merge_request_diff_id.
* A non-NULL st_diffs column.

It may have neither, if the diff is empty.
2017-06-16 18:30:01 +01:00
..
add_limits_mysql.rake Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
migrate_iids.rake Don’t exclude some file in lib from rubocop 2017-02-23 09:32:42 -06:00
setup_postgresql.rake Add index_redirect_routes_path_for_link migration to setup_postgresql.rake 2017-05-08 10:38:26 +00:00