Added logging to migrations.