migration fix for postrgres