Fix migrations for connection pool based adapters