Fixes PG-incompatible migration