IMPORTANT! Data converting in migrations was wrong. Fixed

I have made a mistake in created migrations.

Some code to fix that