1-- Run after update_tm_store.sql
2-- rebuild primary key on TM with extra columns
3ALTER TABLE public.tm DROP CONSTRAINT "tm_idx0";
4ALTER TABLE tm ADD CONSTRAINT tm_idx0 PRIMARY KEY (sid_num,sensing_time,spid,sequence_count,reception_time,tdev_gs_id);