Fix issue with adding migration version into log table