home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 26: Security / pc_actual_seguridad.iso / Scanner / SecureScanNX / data1.cab / upgrade_DB / upgrade / upgradeGrantNewBase-CleanBugNewBase.sql < prev    next >
Encoding:
Text File  |  2001-11-16  |  2.7 KB  |  39 lines

  1. delete from nst_contextual_part where cpa_id in (17508,17530,17514,17515,17511,17512);
  2.  
  3. delete from nst_tc_ref where acc_id in (9,46);
  4.  
  5. delete from nst_contextual_part where cpa_id in (17389,17237);
  6.  
  7. update nst_cp_sol set sol_id=364 where exists(select * from nst_cp_sol where cpa_id=15303) and cpa_id=15303;
  8. update nst_cp_sol set sol_id=376 where exists(select * from nst_cp_sol where cpa_id=15299) and cpa_id=15299;
  9. update nst_cp_sol set sol_id=622 where exists(select * from nst_cp_sol where cpa_id=15326) and cpa_id=15326;
  10. update nst_cp_sol set sol_id=573 where exists(select * from nst_cp_sol where cpa_id=15296) and cpa_id=15296;
  11. update nst_cp_sol set sol_id=632 where exists(select * from nst_cp_sol where cpa_id=15305) and cpa_id=15305;
  12. update nst_cp_sol set sol_id=305 where exists(select * from nst_cp_sol where cpa_id=15301) and cpa_id=15301;
  13. update nst_cp_sol set sol_id=639 where exists(select * from nst_cp_sol where cpa_id=15329) and cpa_id=15329;
  14.  
  15. delete from nst_cp_sol where cpa_id in (1,211,15149,258,15170,15820,15204,17263,15188,15074,135,15169,183,204,15079,15431);
  16.  
  17. update nst_cp_sol set sol_id=357 where exists(select * from nst_cp_sol where cpa_id=15307) and cpa_id= 15307;
  18. update nst_cp_sol set sol_id=307 where exists(select * from nst_cp_sol where cpa_id=15304) and cpa_id= 15304;
  19. update nst_cp_sol set sol_id=639 where exists(select * from nst_cp_sol where cpa_id=17249) and cpa_id= 17249;
  20. update nst_cp_sol set sol_id=639 where exists(select * from nst_cp_sol where cpa_id=17253) and cpa_id= 17253;
  21. update nst_cp_sol set sol_id=637 where exists(select * from nst_cp_sol where cpa_id=15318) and cpa_id= 15318;
  22. update nst_cp_sol set sol_id=396 where exists(select * from nst_cp_sol where cpa_id=15294) and cpa_id= 15294;
  23. update nst_cp_sol set sol_id=398 where exists(select * from nst_cp_sol where cpa_id=15320) and cpa_id= 15320;
  24. update nst_cp_sol set sol_id=443 where exists(select * from nst_cp_sol where cpa_id=15297) and cpa_id= 15297;
  25.  
  26. delete from nst_cp_sol where cpa_id in (15173,15154,256,250,251,262,15168,15147);
  27.  
  28. DELETE nst_contextual_part where con_id <> 5;
  29. DELETE nst_cp_sol WHERE acc_id NOT IN (SELECT acc_id FROM nst_tc);
  30. DELETE nst_solution WHERE sol_id NOT IN (SELECT sol_id FROM nst_cp_sol);
  31. DELETE nst_glossary_entry WHERE acc_id NOT IN (SELECT acc_id FROM nst_tc);
  32. DELETE nst_parameter WHERE par_clstype=8 and par_objid NOT IN (SELECT tca_id FROM nst_tc);
  33. DELETE nst_paramvalue WHERE pav_classe=8 and pav_objid NOT IN (SELECT tca_id FROM nst_tc);
  34.  
  35. %delete from nst_cp_sol where cpa_id in (15173,15304,256,17253,15318,15326,15294,15320,15295,
  36. %17397,15302,15147,17264,15300,15323,15298,15303,15299,15296,15305,15329,1,15301,15431);
  37. %
  38. %delete from nst_cp_sol where cpa_id in (17508,17530,17514,17515,17511,17512);
  39.