alter table tsticket disable trigger ins_ticket;
alter table tsticket disable trigger tsticket_appsearch_upd;
alter table tsticket disable trigger tsticket_check_tstype;
alter table tsticket disable trigger tsticket_fileattr_upd;
alter table tsticket disable trigger tsticket_hist;
alter table tsticket disable trigger upd_tsticket_due;
alter table tsticket disable trigger upd_tsticket_owner;
alter table tsticket disable trigger upd_tsticket_tsprio;

update tsticket set
  tsticket_tstype_id = 1002 -- Extended
where tsticket_tstype_id is null;

alter table tsticket enable trigger ins_ticket;
alter table tsticket enable trigger tsticket_appsearch_upd;
alter table tsticket enable trigger tsticket_check_tstype;
alter table tsticket enable trigger tsticket_fileattr_upd;
alter table tsticket enable trigger tsticket_hist;
alter table tsticket enable trigger upd_tsticket_due;
alter table tsticket enable trigger upd_tsticket_owner;
alter table tsticket enable trigger upd_tsticket_tsprio;
