Also remove valid_id from initial inserts to ticket and ticket_history tables.