BITMAG-1011: Fixed bad migration script