gitlab-org--gitlab-foss/db
Sean McGivern f2d50af917 Migrate MR commits and diffs to new tables
Previously, we stored these as serialised fields - `st_{commits,diffs}` - on the
`merge_request_diffs` table. These now have their own tables -
`merge_request_diff_{commits,diffs}` - with a column for each attribute of the
serialised data.

Add a background migration to go through the existing MR diffs and migrate them
to the new format. Ignore any contents that cannot be displayed. Assuming that
we have 5 million rows to migrate, and each batch of 2,500 rows can be
completed in 5 minutes, this will take about 7 days to migrate everything.
2017-08-03 13:20:26 +01:00
..
fixtures Replace invalid chars while seeding environments 2017-06-21 11:16:38 +00:00
migrate Change project FK migration to skip existing FKs 2017-08-02 13:03:21 +02:00
post_migrate Migrate MR commits and diffs to new tables 2017-08-03 13:20:26 +01:00
schema.rb Merge branch '33620-remove-events-from-notification_settings' into 'master' 2017-08-01 14:54:56 +00:00
seeds.rb