DELETE FROM cfdat_tag;
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (1,'CFINIT',(SELECT cfg_id FROM cfdat_config WHERE name='initialize' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (2,'CFSTDBY',(SELECT cfg_id FROM cfdat_config WHERE name='shutdown' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (3,'CFUNCFG',NULL);
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (100,'CFCFG',(SELECT cfg_id FROM cfdat_config WHERE name='only_pedestal' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (200,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='bridge_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (201,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='ddd_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (202,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='dmm_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (203,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='imm_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (204,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='niscsn' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (205,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='niscsn_fast' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (206,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='only_pedestal' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (207,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='ori_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (208,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='read_laser_ids' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (209,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='reset_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
INSERT INTO cfdat_tag(tag,command,cfg_id) VALUES (210,'CFTEST',(SELECT cfg_id FROM cfdat_config WHERE name='shutdown_test' AND ver_id=(SELECT ver_id FROM cfdat_version WHERE name='r1238e')));
commit;
