added conditional check on migration for obsolete table