Fix string/integer conversions in migrations.
Merge pull request #222 from pozorvlak/fixup_migration

Fix string/integer conversions in migrations.