Postgres was complaining about varchar != integer. My instance didn't do this though. Simple fix.