Fix ticket priority foreign key nullable.