gitlab-org--gitlab-foss/lib/gitlab/import_export
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
..
attribute_cleaner.rb
attributes_finder.rb
avatar_restorer.rb
avatar_saver.rb
command_line_util.rb
error.rb
file_importer.rb
hash_util.rb
import_export.yml Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
importer.rb
json_hash_builder.rb Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
members_mapper.rb
merge_request_parser.rb
project_creator.rb
project_tree_restorer.rb
project_tree_saver.rb
reader.rb
relation_factory.rb Add table for files in merge request diffs 2017-06-16 18:30:01 +01:00
repo_restorer.rb
repo_saver.rb
saver.rb
shared.rb
uploads_restorer.rb
uploads_saver.rb
version_checker.rb
version_saver.rb
wiki_repo_saver.rb