Added special cases handling for migrations

Added code for dealing with special cases from migrations.  Many of the
migrations are just not worth fixing so ignore line that are too long.

Change-Id: I2ea54792eb0c5e22a3f6883b12be9ce7ef172e44