modify oa_insert_ts_relations