sql_update_db.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. # PatchDate Timestamp of when succesfully patched. Automatically generated by the server.
  31. ###########################################################################
  32. Header:
  33. Type: SQL_UPDATE_DB
  34. Version: 1
  35. Body:
  36. # 14.3 Flaming Basin - Dimensional Travel Quest variable fix
  37. - Id: 1
  38. Script: >
  39. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs' WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` < 2;
  40. Mode: Renewal
  41. - Id: 2
  42. Script: >
  43. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = 3 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` = 2;
  44. Mode: Renewal
  45. - Id: 3
  46. Script: >
  47. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = `value` + 2 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` < 8;
  48. Mode: Renewal
  49. - Id: 4
  50. Script: >
  51. UPDATE `char_reg_num` SET `key` = 'ep14_3_newerabs', `value` = `value` + 7 WHERE `key` = 'ep14_3_dimensional_travel' AND `index` = 0 AND `value` > 7;
  52. Mode: Renewal
  53. # CR_CULTIVATION removal from Renewal
  54. - Id: 5
  55. Script: >
  56. 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;
  57. Mode: Renewal
  58. - Id: 6
  59. Script: >
  60. DELETE FROM `skill` WHERE `id` = 491;
  61. Mode: Renewal
  62. # AB_EUCHARISTICA removal
  63. - Id: 7
  64. Script: >
  65. 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;
  66. - Id: 8
  67. Script: >
  68. DELETE FROM `skill` WHERE `id` = 2049;
  69. # GN_SLINGITEM removal
  70. - Id: 9
  71. Script: >
  72. 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;
  73. - Id: 10
  74. Script: >
  75. DELETE FROM `skill` WHERE `id` = 2493;
  76. # GN_MAKEBOMB removal
  77. - Id: 11
  78. Script: >
  79. 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;
  80. - Id: 12
  81. Script: >
  82. DELETE FROM `skill` WHERE `id` = 2496;
  83. # HT_SANDMAN removal from Super Novice Expanded
  84. - Id: 13
  85. Script: >
  86. 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;
  87. - Id: 14
  88. Script: >
  89. 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;
  90. # HT_FLASHER removal from Super Novice Expanded
  91. - Id: 15
  92. Script: >
  93. 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;
  94. - Id: 16
  95. Script: >
  96. 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;
  97. # HT_FREEZINGTRAP removal from Super Novice Expanded
  98. - Id: 17
  99. Script: >
  100. 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;
  101. - Id: 18
  102. Script: >
  103. 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;
  104. Footer:
  105. Imports:
  106. - Path: sql-files/saves/login-sql_update_db.yml
  107. - Path: sql-files/saves/char-sql_update_db.yml
  108. - Path: sql-files/saves/map-sql_update_db.yml
  109. - Path: sql-files/saves/log-sql_update_db.yml