Fix migration script to current version.