fixed old migrations to work when run on empty db