[FIX] MySQL data migration

Implements [ticket 2644](https://www.openproject.org/issues/2644)