Fix repo migration to add user id