浏览代码

SQL: Update was required after [4241], so cleaned up core a little to prevent such issues in the future all together. Now the zone names can be changed as many times as needed, just don't change their id. Thus, I changed the structure of grandboss_list a little and this requires [L1822] and the sql update in this commit. Fixes #L2241, thx L2Nemesis for reporting.

Emperorc 17 年之前
父节点
当前提交
258187e994
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 1 1
      datapack_development/sql/grandboss_list.sql
  2. 8 0
      datapack_development/sql/updates/20080316update.sql

+ 1 - 1
datapack_development/sql/grandboss_list.sql

@@ -4,6 +4,6 @@
 
 CREATE TABLE IF NOT EXISTS grandboss_list (
   `player_id` decimal(11,0) NOT NULL,
-  `zone` varchar(40) NOT NULL,
+  `zone` decimal(11,0) NOT NULL,
   PRIMARY KEY  (`player_id`)
 );

+ 8 - 0
datapack_development/sql/updates/20080316update.sql

@@ -0,0 +1,8 @@
+UPDATE grandboss_list SET zone = 12006 WHERE zone = 'LairofAntharas';
+UPDATE grandboss_list SET zone = 12007 WHERE zone = 'LairofBaium';
+UPDATE grandboss_list SET zone = 12008 WHERE zone = 'LairofValakas';
+UPDATE grandboss_list SET zone = 12009 WHERE zone = 'LairofLilith';
+UPDATE grandboss_list SET zone = 12010 WHERE zone = 'LairofAnakim';
+UPDATE grandboss_list SET zone = 12011 WHERE zone = 'LairofZaken';
+UPDATE grandboss_list SET zone = 12014 WHERE zone = 'AltarofSacrifice';
+ALTER TABLE grandboss_list MODIFY zone decimal(11,0) NOT NULL;