added migration routines related to InternalFile sha removal
minor fix for migration script
minor fix related to sha removal