Skip to content

Old page data migration

Michal Hozza edited this page Aug 24, 2016 · 5 revisions

Recommended practices and scripts for old page data migrations.

Wiki documents

It highly depends on the original state of your articles, however, manual migration is a great opportunity to revise and update them.

Users

Automatically copy all the old users, without any login info and store the id mapping. Let users create their new credentials and then merge them (using merge tool). Don't forget to update id mappings accordingly.

TODO: Example script https://github.com/trojsten/web/blob/master/trojsten/people/management/commands/migrate_people_from_kaspar.py

Semesters, Rounds, Tasks, Statements, Solutions and Results

TODO: There will be a script, that converts filesystem structure with pdf statements and solutions, txt metadata (deadlines, task names, task points) and csv results to the correct database instances.

## Events

If you had event attendees in the old database migrate them automatically using user mappings. Otherwise, create old important events manually (using action wizard (TODO: not implemented yet)). Event has it's own wiki article subtree, so you can migrate any content.

Submits

Optionally, it is possible to migrate also old user submits. This may, however, be a complicated process, that requires deep knowledge of both old and new submit systems. Try at your own risk.

Clone this wiki locally