Prechádzať zdrojové kódy

SQL fix for Homunc skills

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7768 54d463be-8e91-2dee-dedb-b68131a5f0ec
DracoRPG 19 rokov pred
rodič
commit
f6d32063cf
3 zmenil súbory, kde vykonal 13 pridanie a 3 odobranie
  1. 1 0
      Changelog-Trunk.txt
  2. 4 3
      sql-files/main.sql
  3. 8 0
      sql-files/upgrade_svn7768.sql

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/07/20
+	* Added the SQL fix to Homunculus skill learning/saving bug [DracoRPG]
 	* Added a status_check_skilluse on skill_attack_area call to prevent splash
 	  damage skills from hitting hidden/trickdead/etc characters. [Skotlex]
 	* Corrected fog of wall to behave as best known currently: [Skotlex]

+ 4 - 3
sql-files/main.sql

@@ -338,7 +338,7 @@ CREATE TABLE `homunculus` (
   `rename_flag` tinyint(2) NOT NULL default '0',
   `vaporize` tinyint(2) NOT NULL default '0',
   PRIMARY KEY  (`homun_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=MyISAM;
 
 -- 
 -- Table structure for table `interlog`
@@ -547,8 +547,9 @@ CREATE TABLE `skill_homunculus` (
   `homun_id` int(11) NOT NULL,
   `id` int(11) NOT NULL,
   `lv` smallint(6) NOT NULL,
-  PRIMARY KEY  (`homun_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+  PRIMARY KEY  (`homun_id`,`id`),
+  KEY `homun_id` (`homun_id`)
+) TYPE=MyISAM;
 
 --
 -- Table structure for table `sstatus`

+ 8 - 0
sql-files/upgrade_svn7768.sql

@@ -0,0 +1,8 @@
+DROP TABLE IF EXISTS `skill_homunculus`;
+CREATE TABLE `skill_homunculus` (
+  `homun_id` int(11) NOT NULL,
+  `id` int(11) NOT NULL,
+  `lv` smallint(6) NOT NULL,
+  PRIMARY KEY  (`homun_id`,`id`),
+  KEY `homun_id` (`homun_id`)
+) TYPE=MyISAM;