check if table or columns exist in migrations before trying to create them