Removed unneeded column valid_id from ticket and ticket_history tables.