Return back old code for compatibility with current migrations, added missed migrations