20081227update.sql 5.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. -- DELETE INCORRECT SMART CUBIC SKILLS
  2. DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 96 );
  3. DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 1 );
  4. DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 2 );
  5. DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 3 );
  6. DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 104 );
  7. DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 1);
  8. DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 2);
  9. DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 3);
  10. DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 106 );
  11. DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 1 );
  12. DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 2 );
  13. DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 3 );
  14. DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 111 );
  15. DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 1 );
  16. DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 2 );
  17. DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 3 );
  18. -- DELETE INCORRECT SMART CUBIC SHORTCUTS
  19. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 96 );
  20. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 1 );
  21. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 2 );
  22. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 3 );
  23. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 104 );
  24. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 1);
  25. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 2);
  26. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 3);
  27. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 106 );
  28. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 1 );
  29. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 2 );
  30. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 3 );
  31. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 111 );
  32. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 1 );
  33. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 2 );
  34. DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 3 );