sql_update_db.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # This file is a part of rAthena.
  2. # Copyright(C) 2020 rAthena Development Team
  3. # https://rathena.org - https://github.com/rathena
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. ###########################################################################
  19. # SQL Update Database
  20. ###########################################################################
  21. #
  22. # SQL Update Settings
  23. #
  24. ###########################################################################
  25. # - Id Patch ID.
  26. # Script Individual SQL script to execute.
  27. # Mode Server mode the update applies to. (Default: Both)
  28. # Database Database the update applies to. (Default: Normal)
  29. # Skip Skip the update. (Default: false)
  30. ###########################################################################
  31. Header:
  32. Type: SQL_UPDATE_DB
  33. Version: 1
  34. Body:
  35. # 14.3 Flaming Basin - Dimensional Travel Quest variable fix
  36. - Id: 1
  37. Script: >
  38. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs' WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` < 2;
  39. Mode: Renewal
  40. - Id: 2
  41. Script: >
  42. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = 3 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` = 2;
  43. Mode: Renewal
  44. - Id: 3
  45. Script: >
  46. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = `value` + 2 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` < 8;
  47. Mode: Renewal
  48. - Id: 4
  49. Script: >
  50. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = `value` + 7 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` > 7;
  51. Mode: Renewal
  52. # CR_CULTIVATION removal from Renewal
  53. - Id: 5
  54. Script: >
  55. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE `s`.id = 491 AND `c`.char_id = `s`.char_id;
  56. Mode: Renewal
  57. - Id: 6
  58. Script: >
  59. DELETE FROM `skill` WHERE `id` = 491;
  60. Mode: Renewal
  61. # AB_EUCHARISTICA removal
  62. - Id: 7
  63. Script: >
  64. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE `s`.id = 2049 AND `c`.char_id = `s`.char_id;
  65. - Id: 8
  66. Script: >
  67. DELETE FROM `skill` WHERE `id` = 2049;
  68. # GN_SLINGITEM removal
  69. - Id: 9
  70. Script: >
  71. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE `s`.id = 2493 AND `c`.char_id = `s`.char_id;
  72. - Id: 10
  73. Script: >
  74. DELETE FROM `skill` WHERE `id` = 2493;
  75. # GN_MAKEBOMB removal
  76. - Id: 11
  77. Script: >
  78. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE `s`.id = 2496 AND `c`.char_id = `s`.char_id;
  79. - Id: 12
  80. Script: >
  81. DELETE FROM `skill` WHERE `id` = 2496;
  82. # HT_SANDMAN removal from Super Novice Expanded
  83. - Id: 13
  84. Script: >
  85. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE (`c`.class = 4190 OR `c`.class = 4191) AND `s`.id = 119 AND `c`.char_id = `s`.char_id;
  86. - Id: 14
  87. Script: >
  88. DELETE FROM `skill` USING `skill`, `char` WHERE (`char`.class = 4190 OR `char`.class = 4191) AND `skill`.id = 119 AND `char`.char_id = `skill`.char_id;
  89. # HT_FLASHER removal from Super Novice Expanded
  90. - Id: 15
  91. Script: >
  92. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE (`c`.class = 4190 OR `c`.class = 4191) AND `s`.id = 120 AND `c`.char_id = `s`.char_id;
  93. - Id: 16
  94. Script: >
  95. DELETE FROM `skill` USING `skill`, `char` WHERE (`char`.class = 4190 OR `char`.class = 4191) AND `skill`.id = 120 AND `char`.char_id = `skill`.char_id;
  96. # HT_FREEZINGTRAP removal from Super Novice Expanded
  97. - Id: 17
  98. Script: >
  99. UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + `s`.lv WHERE (`c`.class = 4190 OR `c`.class = 4191) AND `s`.id = 121 AND `c`.char_id = `s`.char_id;
  100. - Id: 18
  101. Script: >
  102. DELETE FROM `skill` USING `skill`, `char` WHERE (`char`.class = 4190 OR `char`.class = 4191) AND `skill`.id = 121 AND `char`.char_id = `skill`.char_id;