Remove if statement in assignment that doesn't work in PostgreSQL.