Browse Source

BETA/STABLE: Making SQL Updates line by line.

MELERIX 13 years ago
parent
commit
9fdbfdbb29
39 changed files with 367 additions and 404 deletions
  1. 2 2
      L2J_DataPack_BETA/dist/game/data/stats/skills/00000-00099.xml
  2. 1 1
      L2J_DataPack_BETA/dist/game/data/stats/skills/00100-00199.xml
  3. 3 3
      L2J_DataPack_BETA/dist/game/data/stats/skills/00400-00499.xml
  4. 1 1
      L2J_DataPack_BETA/dist/game/data/stats/skills/00600-00699.xml
  5. 5 5
      L2J_DataPack_BETA/dist/game/data/stats/skills/01000-01099.xml
  6. 1 1
      L2J_DataPack_BETA/dist/game/data/stats/skills/01400-01499.xml
  7. 1 2
      L2J_DataPack_BETA/dist/sql/community/updates/20110316update.sql
  8. 22 1
      L2J_DataPack_BETA/dist/sql/game/updates/20080107update.sql
  9. 1 1
      L2J_DataPack_BETA/dist/sql/game/updates/20080128update.sql
  10. 56 57
      L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql
  11. 3 4
      L2J_DataPack_BETA/dist/sql/game/updates/20080419update.sql
  12. 2 3
      L2J_DataPack_BETA/dist/sql/game/updates/20080505update.sql
  13. 12 13
      L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql
  14. 3 4
      L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql
  15. 1 1
      L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql
  16. 5 6
      L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql
  17. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20090305update.sql
  18. 1 1
      L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql
  19. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20090916update.sql
  20. 3 3
      L2J_DataPack_BETA/dist/sql/game/updates/20091208update.sql
  21. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20100217update.sql
  22. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20100325update.sql
  23. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20100808update.sql
  24. 2 1
      L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql
  25. 83 90
      L2J_DataPack_BETA/dist/sql/game/updates/20100928update.sql
  26. 13 14
      L2J_DataPack_BETA/dist/sql/game/updates/20101004update.sql
  27. 1 1
      L2J_DataPack_BETA/dist/sql/game/updates/20101119update.sql
  28. 5 6
      L2J_DataPack_BETA/dist/sql/game/updates/20110112update.sql
  29. 4 7
      L2J_DataPack_BETA/dist/sql/game/updates/20110210update.sql
  30. 43 74
      L2J_DataPack_BETA/dist/sql/game/updates/20110316update.sql
  31. 19 21
      L2J_DataPack_BETA/dist/sql/game/updates/20110320update.sql
  32. 2 3
      L2J_DataPack_BETA/dist/sql/game/updates/20110511update.sql
  33. 15 17
      L2J_DataPack_BETA/dist/sql/game/updates/20110514update.sql
  34. 20 21
      L2J_DataPack_BETA/dist/sql/game/updates/20110809update.sql
  35. 2 3
      L2J_DataPack_BETA/dist/sql/game/updates/20110831update.sql
  36. 15 20
      L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql
  37. 3 4
      L2J_DataPack_BETA/dist/sql/login/updates/20080117update.sql
  38. 6 6
      L2J_DataPack_BETA/dist/sql/login/updates/20100208update.sql
  39. 1 2
      L2J_DataPack_BETA/dist/sql/login/updates/20110316update.sql

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/stats/skills/00000-00099.xml

@@ -1151,7 +1151,7 @@
 		<enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" />
 		<enchant3 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant3 name="elementPower" val="#enchElementPower" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 	</skill>
@@ -2082,7 +2082,7 @@
 		<enchant3 name="skillType" val="PDAM" />
 		<enchant3 name="power" val="#ench3Attack" />
 		<enchant4 name="magicLvl" val="#enchantMagicLvl" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/stats/skills/00100-00199.xml

@@ -270,7 +270,7 @@
 		<enchant2 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant2 name="mpConsume" val="#ench2mpConsume" />
 		<enchant3 name="magicLvl" val="#enchantMagicLvl" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/stats/skills/00400-00499.xml

@@ -313,7 +313,7 @@
 		<enchant4 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant4 name="element" val="4" /> <!-- Holy -->
 		<enchant4 name="elementPower" val="#ench4HolyAttack" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>
@@ -1588,8 +1588,8 @@
 		<enchant4 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant4 name="element" val="5" /> <!-- Dark -->
 		<enchant4 name="elementPower" val="#ench4DarkAttack" />
-		<cond msgId="113" addName="1">
-			<target race_id="8" /> <!-- Angel -->
+		<cond msgId="144">
+			<target race_id="8" /> <!-- Angels -->
 		</cond>
 		<for>
 			<effect count="10" name="Fear" abnormalTime="2" val="0" />

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/stats/skills/00600-00699.xml

@@ -1660,7 +1660,7 @@
 		<set name="reuseDelay" val="8000" />
 		<set name="skillType" val="MDAM" />
 		<set name="target" val="TARGET_ONE" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 	</skill>

+ 5 - 5
L2J_DataPack_BETA/dist/game/data/stats/skills/01000-01099.xml

@@ -547,7 +547,7 @@
 		<enchant2 name="elementPower" val="#ench2ElementPower" />
 		<enchant3 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant3 name="elementPower" val="#enchElementPower" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 	</skill>
@@ -570,7 +570,7 @@
 		<set name="operateType" val="OP_ACTIVE" />
 		<set name="castRange" val="400" />
 		<set name="effectRange" val="900" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 	</skill>
@@ -683,7 +683,7 @@
 		<enchant2 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant2 name="mpConsume" val="#ench2mpConsume" />
 		<enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 	</skill>
@@ -832,7 +832,7 @@
 		<enchant3 name="power" val="#ench3Attack" />
 		<enchant3 name="elementPower" val="20" />
 		<enchant3 name="element" val="4" /> <!-- Holy -->
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>
@@ -1038,7 +1038,7 @@
 		<set name="isMagic" val="true" />
 		<set name="operateType" val="OP_ACTIVE" />
 		<set name="trait" val="DERANGEMENT" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/stats/skills/01400-01499.xml

@@ -44,7 +44,7 @@
 		<enchant4 name="magicLvl" val="#enchantMagicLvl" />
 		<enchant4 name="element" val="4" /> <!-- Holy -->
 		<enchant4 name="elementPower" val="#ench4HolyAttack" />
-		<cond msgId="113" addName="1">
+		<cond msgId="144">
 			<target race_id="1" /> <!-- Undead -->
 		</cond>
 		<for>

+ 1 - 2
L2J_DataPack_BETA/dist/sql/community/updates/20110316update.sql

@@ -1,2 +1 @@
-ALTER TABLE `posts`
-MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `posts` MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0';

+ 22 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20080107update.sql

@@ -1 +1,22 @@
-ALTER TABLE `characters` DROP `acc`, DROP `crit`, DROP `evasion`, DROP `mAtk`, DROP `mDef`, DROP `mSpd`, DROP `pAtk`, DROP `pDef`, DROP `pSpd`, DROP `runSpd`, DROP `walkSpd`, DROP `str`, DROP `con`, DROP `dex`, DROP `_int`, DROP `men`, DROP `wit`, DROP `movement_multiplier`, DROP `attack_speed_multiplier`, DROP `colRad`, DROP `colHeight`, DROP `maxload`;
+ALTER TABLE `characters` DROP `acc`;
+ALTER TABLE `characters` DROP `crit`;
+ALTER TABLE `characters` DROP `evasion`;
+ALTER TABLE `characters` DROP `mAtk`;
+ALTER TABLE `characters` DROP `mDef`;
+ALTER TABLE `characters` DROP `mSpd`;
+ALTER TABLE `characters` DROP `pAtk`;
+ALTER TABLE `characters` DROP `pDef`;
+ALTER TABLE `characters` DROP `pSpd`;
+ALTER TABLE `characters` DROP `runSpd`;
+ALTER TABLE `characters` DROP `walkSpd`;
+ALTER TABLE `characters` DROP `str`;
+ALTER TABLE `characters` DROP `con`;
+ALTER TABLE `characters` DROP `dex`;
+ALTER TABLE `characters` DROP `_int`;
+ALTER TABLE `characters` DROP `men`;
+ALTER TABLE `characters` DROP `wit`;
+ALTER TABLE `characters` DROP `movement_multiplier`;
+ALTER TABLE `characters` DROP `attack_speed_multiplier`;
+ALTER TABLE `characters` DROP `colRad`;
+ALTER TABLE `characters` DROP `colHeight`;
+ALTER TABLE `characters` DROP `maxload`;

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20080128update.sql

@@ -1 +1 @@
-ALTER TABLE `characters` ADD `transform_id` int(8) NOT NULL DEFAULT 0 AFTER `base_class` ;
+ALTER TABLE `characters` ADD `transform_id` int(8) NOT NULL DEFAULT 0 AFTER `base_class`;

+ 56 - 57
L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql

@@ -1,57 +1,56 @@
-ALTER TABLE characters
-MODIFY `account_name` VARCHAR(45) DEFAULT NULL,
-MODIFY `obj_Id` INT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `char_name` VARCHAR(35) NOT NULL,
-MODIFY `level` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `maxHp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `curHp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `maxCp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `curCp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `maxMp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `curMp` MEDIUMINT UNSIGNED DEFAULT NULL,
-MODIFY `face` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `hairStyle` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `hairColor` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `sex` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `heading` MEDIUMINT DEFAULT NULL,
-MODIFY `x` MEDIUMINT DEFAULT NULL,
-MODIFY `y` MEDIUMINT DEFAULT NULL,
-MODIFY `z` MEDIUMINT DEFAULT NULL,
-MODIFY `exp` BIGINT UNSIGNED DEFAULT 0,
-MODIFY `expBeforeDeath` BIGINT UNSIGNED DEFAULT 0,
-MODIFY `sp` INT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `karma` INT UNSIGNED DEFAULT NULL,
-MODIFY `pvpkills` SMALLINT UNSIGNED DEFAULT NULL,
-MODIFY `pkkills` SMALLINT UNSIGNED DEFAULT NULL,
-MODIFY `clanid` INT UNSIGNED DEFAULT NULL,
-MODIFY `race` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `classid` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `deletetime` BIGINT DEFAULT NULL,
-MODIFY `cancraft` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `title` VARCHAR(16) DEFAULT NULL,
-MODIFY `rec_have` TINYINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `rec_left` TINYINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `accesslevel` MEDIUMINT DEFAULT 0,
-MODIFY `online` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `onlinetime` INT DEFAULT NULL,
-MODIFY `char_slot` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `newbie` MEDIUMINT UNSIGNED DEFAULT 1,
-MODIFY `lastAccess` BIGINT UNSIGNED DEFAULT NULL,
-MODIFY `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0,
-MODIFY `wantspeace` TINYINT UNSIGNED DEFAULT 0,
-MODIFY `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0,
-MODIFY `in_jail` TINYINT UNSIGNED DEFAULT 0,
-MODIFY `jail_timer` INT UNSIGNED DEFAULT 0,
-MODIFY `power_grade` TINYINT UNSIGNED DEFAULT NULL,
-MODIFY `nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `subpledge` SMALLINT NOT NULL DEFAULT 0,
-MODIFY `last_recom_date` BIGINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `apprentice` INT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `sponsor` INT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `varka_ketra_ally` TINYINT NOT NULL DEFAULT 0,
-MODIFY `clan_join_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `clan_create_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
-MODIFY `death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `account_name` VARCHAR(45) DEFAULT NULL;
+ALTER TABLE characters MODIFY `obj_Id` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `char_name` VARCHAR(35) NOT NULL;
+ALTER TABLE characters MODIFY `level` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `maxHp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `curHp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `maxCp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `curCp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `maxMp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `curMp` MEDIUMINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `face` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `hairStyle` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `hairColor` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `sex` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `heading` MEDIUMINT DEFAULT NULL;
+ALTER TABLE characters MODIFY `x` MEDIUMINT DEFAULT NULL;
+ALTER TABLE characters MODIFY `y` MEDIUMINT DEFAULT NULL;
+ALTER TABLE characters MODIFY `z` MEDIUMINT DEFAULT NULL;
+ALTER TABLE characters MODIFY `exp` BIGINT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `expBeforeDeath` BIGINT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `sp` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `karma` INT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `pvpkills` SMALLINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `pkkills` SMALLINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `clanid` INT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `race` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `classid` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `deletetime` BIGINT DEFAULT NULL;
+ALTER TABLE characters MODIFY `cancraft` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `title` VARCHAR(16) DEFAULT NULL;
+ALTER TABLE characters MODIFY `rec_have` TINYINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `rec_left` TINYINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `accesslevel` MEDIUMINT DEFAULT 0;
+ALTER TABLE characters MODIFY `online` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `onlinetime` INT DEFAULT NULL;
+ALTER TABLE characters MODIFY `char_slot` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `newbie` MEDIUMINT UNSIGNED DEFAULT 1;
+ALTER TABLE characters MODIFY `lastAccess` BIGINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `wantspeace` TINYINT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0;
+ALTER TABLE characters MODIFY `in_jail` TINYINT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `jail_timer` INT UNSIGNED DEFAULT 0;
+ALTER TABLE characters MODIFY `power_grade` TINYINT UNSIGNED DEFAULT NULL;
+ALTER TABLE characters MODIFY `nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `subpledge` SMALLINT NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `last_recom_date` BIGINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `apprentice` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `sponsor` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `varka_ketra_ally` TINYINT NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `clan_join_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `clan_create_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE characters MODIFY `death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0;

+ 3 - 4
L2J_DataPack_BETA/dist/sql/game/updates/20080419update.sql

@@ -1,4 +1,3 @@
-ALTER TABLE `fort`
-  DROP `siegeDayOfWeek`,
-  DROP `siegeHourOfDay`,
-  ADD `lastOwnedTime` DECIMAL( 20, 0 ) DEFAULT '0' NOT NULL AFTER `siegeDate` ;  
+ALTER TABLE `fort` DROP `siegeDayOfWeek`;
+ALTER TABLE `fort` DROP `siegeHourOfDay`;
+ALTER TABLE `fort` ADD `lastOwnedTime` DECIMAL(20,0) DEFAULT '0' NOT NULL AFTER `siegeDate`;

+ 2 - 3
L2J_DataPack_BETA/dist/sql/game/updates/20080505update.sql

@@ -8,9 +8,8 @@ ALTER TABLE `character_subclasses` CHANGE `char_obj_id` `charId` INT UNSIGNED NO
 ALTER TABLE `character_skills` CHANGE `char_obj_id` `charId` INT UNSIGNED NOT NULL DEFAULT 0;
 ALTER TABLE `character_skills_save` CHANGE `char_obj_id` `charId` INT UNSIGNED NOT NULL DEFAULT 0;
 
-ALTER TABLE `character_friends`
-CHANGE `char_id` `charId` INT UNSIGNED NOT NULL DEFAULT 0,
-CHANGE `friend_id` `friendId` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE `character_friends` CHANGE `char_id` `charId` INT UNSIGNED NOT NULL DEFAULT 0;
+ALTER TABLE `character_friends` CHANGE `friend_id` `friendId` INT UNSIGNED NOT NULL DEFAULT 0;
 
 ALTER TABLE `cursed_weapons` CHANGE `playerId` `charId` INT UNSIGNED NOT NULL DEFAULT 0;
 ALTER TABLE `heroes` CHANGE `char_id` `charId` INT UNSIGNED NOT NULL DEFAULT 0;

+ 12 - 13
L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql

@@ -1,13 +1,12 @@
-ALTER TABLE `custom_armorsets`
-ADD `skill_lvl` TINYINT UNSIGNED NOT NULL default 0 AFTER `skill_id`,
-MODIFY id SMALLINT UNSIGNED NOT NULL auto_increment,
-MODIFY chest SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY legs SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY head SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY gloves SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY feet SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY skill_id SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY skill_lvl TINYINT UNSIGNED NOT NULL default 0,
-MODIFY shield SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY shield_skill_id SMALLINT UNSIGNED NOT NULL default 0,
-MODIFY enchant6skill SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` ADD `skill_lvl` TINYINT UNSIGNED NOT NULL default 0 AFTER `skill_id`;
+ALTER TABLE `custom_armorsets` MODIFY id SMALLINT UNSIGNED NOT NULL auto_increment;
+ALTER TABLE `custom_armorsets` MODIFY chest SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY legs SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY head SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY gloves SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY feet SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY skill_id SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY skill_lvl TINYINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY shield SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY shield_skill_id SMALLINT UNSIGNED NOT NULL default 0;
+ALTER TABLE `custom_armorsets` MODIFY enchant6skill SMALLINT UNSIGNED NOT NULL default 0;

+ 3 - 4
L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql

@@ -1,4 +1,3 @@
-ALTER TABLE `custom_npc`
-MODIFY mp decimal(6,0) default NULL,
-MODIFY rhand decimal(5,0) default NULL,
-MODIFY lhand decimal(5,0) default NULL;
+ALTER TABLE `custom_npc` MODIFY mp decimal(6,0) default NULL;
+ALTER TABLE `custom_npc` MODIFY rhand decimal(5,0) default NULL;
+ALTER TABLE `custom_npc` MODIFY lhand decimal(5,0) default NULL;

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql

@@ -1 +1 @@
-ALTER TABLE `custom_npc` ADD `drop_herbs` int(1) default 0 AFTER `AI` ;
+ALTER TABLE `custom_npc` ADD `drop_herbs` int(1) default 0 AFTER `AI`;

+ 5 - 6
L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql

@@ -1,6 +1,5 @@
-ALTER TABLE `pets`
-DROP `karma`,
-DROP `pkkills`,
-ADD `weapon` int(5) NOT NULL default 0 AFTER `fed`,
-ADD `armor` int(5) NOT NULL default 0 AFTER `weapon`,
-ADD `jewel` int(5) NOT NULL default 0 AFTER `armor`;
+ALTER TABLE `pets` DROP `karma`;
+ALTER TABLE `pets` DROP `pkkills`;
+ALTER TABLE `pets` ADD `weapon` int(5) NOT NULL default 0 AFTER `fed`;
+ALTER TABLE `pets` ADD `armor` int(5) NOT NULL default 0 AFTER `weapon`;
+ALTER TABLE `pets` ADD `jewel` int(5) NOT NULL default 0 AFTER `armor`;

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20090305update.sql

@@ -1 +1,2 @@
-ALTER TABLE `grandboss_list` DROP PRIMARY KEY, ADD PRIMARY KEY (`player_id`,`zone`);
+ALTER TABLE `grandboss_list` DROP PRIMARY KEY;
+ALTER TABLE `grandboss_list` ADD PRIMARY KEY (`player_id`,`zone`);

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql

@@ -1 +1 @@
-ALTER TABLE `characters` ADD `fame` MEDIUMINT UNSIGNED NOT NULL default 0 AFTER `karma` ;
+ALTER TABLE `characters` ADD `fame` MEDIUMINT UNSIGNED NOT NULL default 0 AFTER `karma`;

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20090916update.sql

@@ -1 +1,2 @@
-ALTER TABLE `character_recipebook` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`,`charId`,`classIndex`);
+ALTER TABLE `character_recipebook` DROP PRIMARY KEY;
+ALTER TABLE `character_recipebook` ADD PRIMARY KEY (`id`,`charId`,`classIndex`);

+ 3 - 3
L2J_DataPack_BETA/dist/sql/game/updates/20091208update.sql

@@ -1,3 +1,3 @@
-ALTER TABLE `character_friends` 
-DROP PRIMARY KEY, ADD PRIMARY KEY (`charId`, `friendId`),
-DROP column `friend_name`;
+ALTER TABLE `character_friends` DROP PRIMARY KEY;
+ALTER TABLE `character_friends` ADD PRIMARY KEY (`charId`, `friendId`);
+ALTER TABLE `character_friends` DROP column `friend_name`;

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20100217update.sql

@@ -1 +1,2 @@
-ALTER TABLE `raidboss_spawnlist` DROP PRIMARY KEY, ADD PRIMARY KEY (`boss_id`);
+ALTER TABLE `raidboss_spawnlist` DROP PRIMARY KEY;
+ALTER TABLE `raidboss_spawnlist` ADD PRIMARY KEY (`boss_id`);

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20100325update.sql

@@ -1 +1,2 @@
-ALTER TABLE `character_skills_save` DROP PRIMARY KEY, ADD PRIMARY KEY (`charId`,`skill_id`,`skill_level`,`class_index`);
+ALTER TABLE `character_skills_save` DROP PRIMARY KEY;
+ALTER TABLE `character_skills_save` ADD PRIMARY KEY (`charId`,`skill_id`,`skill_level`,`class_index`);

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20100808update.sql

@@ -1,2 +1,3 @@
 INSERT INTO item_elementals (itemId, elemType, elemValue) SELECT itemId, elemType, elemValue FROM item_attributes;
-ALTER TABLE item_attributes DROP COLUMN elemType, DROP COLUMN elemValue;
+ALTER TABLE item_attributes DROP COLUMN elemType;
+ALTER TABLE item_attributes DROP COLUMN elemValue;

+ 2 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql

@@ -1,2 +1,3 @@
 ALTER TABLE `clan_skills` ADD COLUMN `sub_pledge_id` INT NOT NULL default '-2';
-ALTER TABLE `clan_skills` DROP PRIMARY KEY, ADD PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`);
+ALTER TABLE `clan_skills` DROP PRIMARY KEY;
+ALTER TABLE `clan_skills` ADD PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`);

+ 83 - 90
L2J_DataPack_BETA/dist/sql/game/updates/20100928update.sql

@@ -1,96 +1,89 @@
-ALTER TABLE `custom_armorsets`
-MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
-MODIFY `chest` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `legs` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `head` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `gloves` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `feet` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `skill` varchar(70) NOT NULL DEFAULT '0-0;',
-MODIFY `shield` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `shield_skill_id` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `enchant6skill` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `mw_legs` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `mw_head` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `mw_gloves` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `mw_feet` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `mw_shield` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT;
+ALTER TABLE `custom_armorsets` MODIFY `chest` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `legs` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `head` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `gloves` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `feet` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `skill` varchar(70) NOT NULL DEFAULT '0-0;';
+ALTER TABLE `custom_armorsets` MODIFY `shield` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `shield_skill_id` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `enchant6skill` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `mw_legs` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `mw_head` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `mw_gloves` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `mw_feet` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_armorsets` MODIFY `mw_shield` smallint(5) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_droplist`
-MODIFY `mobId` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `itemId` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `min` int(8) unsigned NOT NULL DEFAULT '0',
-MODIFY `max` int(8) unsigned NOT NULL DEFAULT '0',
-MODIFY `category` smallint(3) NOT NULL DEFAULT '0',
-MODIFY `chance` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `mobId` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `itemId` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `min` int(8) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `max` int(8) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `category` smallint(3) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_droplist` MODIFY `chance` mediumint(7) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_merchant_buylists`
-MODIFY `item_id` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `price` int(10) NOT NULL DEFAULT '0',
-MODIFY `shop_id` mediumint(7) unsigned NOT NULL DEFAULT '0',
-MODIFY `order` tinyint(3) unsigned NOT NULL DEFAULT '0',
-MODIFY `count` tinyint(2) NOT NULL DEFAULT '-1',
-MODIFY `currentCount` tinyint(2) NOT NULL DEFAULT '-1',
-MODIFY `time` int(11) NOT NULL DEFAULT '0',
-MODIFY `savetimer` decimal(20,0) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `item_id` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `price` int(10) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `shop_id` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `order` tinyint(3) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `count` tinyint(2) NOT NULL DEFAULT '-1';
+ALTER TABLE `custom_merchant_buylists` MODIFY `currentCount` tinyint(2) NOT NULL DEFAULT '-1';
+ALTER TABLE `custom_merchant_buylists` MODIFY `time` int(11) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `savetimer` decimal(20,0) NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_merchant_shopids`
-MODIFY `shop_id` mediumint(7) unsigned NOT NULL DEFAULT '0',
-MODIFY `npc_id` varchar(5) DEFAULT NULL;
+ALTER TABLE `custom_merchant_shopids` MODIFY `shop_id` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_shopids` MODIFY `npc_id` varchar(5) DEFAULT NULL;
 
-ALTER TABLE `custom_npc`
-MODIFY `id` mediumint(7) unsigned NOT NULL DEFAULT '0',
-MODIFY `idTemplate` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `name` varchar(200) NOT NULL DEFAULT '',
-MODIFY `serverSideName` tinyint(1) NOT NULL DEFAULT '1',
-MODIFY `title` varchar(45) NOT NULL DEFAULT '',
-MODIFY `serverSideTitle` tinyint(1) NOT NULL DEFAULT '1',
-MODIFY `class` varchar(200) DEFAULT NULL,
-MODIFY `collision_radius` decimal(6,2) DEFAULT NULL,
-MODIFY `collision_height` decimal(6,2) DEFAULT NULL,
-MODIFY `level` tinyint(2) DEFAULT NULL,
-MODIFY `sex` varchar(6) DEFAULT NULL,
-MODIFY `type` varchar(22) DEFAULT NULL,
-MODIFY `attackrange` smallint(4) DEFAULT NULL,
-MODIFY `hp` decimal(8,0) DEFAULT NULL,
-MODIFY `mp` decimal(8,0) DEFAULT NULL,
-MODIFY `hpreg` decimal(6,2) DEFAULT NULL,
-MODIFY `mpreg` decimal(6,2) DEFAULT NULL,
-MODIFY `str` tinyint(2) NOT NULL DEFAULT '40',
-MODIFY `con` tinyint(2) NOT NULL DEFAULT '43',
-MODIFY `dex` tinyint(2) NOT NULL DEFAULT '30',
-MODIFY `int` tinyint(2) NOT NULL DEFAULT '21',
-MODIFY `wit` tinyint(2) NOT NULL DEFAULT '20',
-MODIFY `men` tinyint(2) NOT NULL DEFAULT '20',
-MODIFY `exp` int(9) NOT NULL DEFAULT '0',
-MODIFY `sp` int(9) NOT NULL DEFAULT '0',
-MODIFY `patk` mediumint(6) DEFAULT NULL,
-MODIFY `pdef` mediumint(6) DEFAULT NULL,
-MODIFY `matk` mediumint(6) DEFAULT NULL,
-MODIFY `mdef` mediumint(6) DEFAULT NULL,
-MODIFY `atkspd` smallint(4) NOT NULL DEFAULT '230',
-MODIFY `aggro` smallint(4) NOT NULL DEFAULT '0',
-MODIFY `matkspd` smallint(4) NOT NULL DEFAULT '333',
-MODIFY `rhand` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `lhand` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `armor` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `enchant` tinyint(1) NOT NULL DEFAULT '0',
-MODIFY `walkspd` smallint(3) NOT NULL DEFAULT '60',
-MODIFY `runspd` smallint(3) NOT NULL DEFAULT '120',
-MODIFY `isUndead` tinyint(1) NOT NULL DEFAULT '0',
-MODIFY `dropHerbGroup` tinyint(1) NOT NULL DEFAULT '0',
-MODIFY `basestats` tinyint(1) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `id` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `idTemplate` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `name` varchar(200) NOT NULL DEFAULT '';
+ALTER TABLE `custom_npc` MODIFY `serverSideName` tinyint(1) NOT NULL DEFAULT '1',
+ALTER TABLE `custom_npc` MODIFY `title` varchar(45) NOT NULL DEFAULT '';
+ALTER TABLE `custom_npc` MODIFY `serverSideTitle` tinyint(1) NOT NULL DEFAULT '1';
+ALTER TABLE `custom_npc` MODIFY `class` varchar(200) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `collision_radius` decimal(6,2) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `collision_height` decimal(6,2) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `level` tinyint(2) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `sex` varchar(6) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `type` varchar(22) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `attackrange` smallint(4) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `hp` decimal(8,0) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mp` decimal(8,0) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `hpreg` decimal(6,2) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mpreg` decimal(6,2) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `str` tinyint(2) NOT NULL DEFAULT '40';
+ALTER TABLE `custom_npc` MODIFY `con` tinyint(2) NOT NULL DEFAULT '43';
+ALTER TABLE `custom_npc` MODIFY `dex` tinyint(2) NOT NULL DEFAULT '30';
+ALTER TABLE `custom_npc` MODIFY `int` tinyint(2) NOT NULL DEFAULT '21';
+ALTER TABLE `custom_npc` MODIFY `wit` tinyint(2) NOT NULL DEFAULT '20';
+ALTER TABLE `custom_npc` MODIFY `men` tinyint(2) NOT NULL DEFAULT '20';
+ALTER TABLE `custom_npc` MODIFY `exp` int(9) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `sp` int(9) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `patk` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `pdef` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `matk` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mdef` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `atkspd` smallint(4) NOT NULL DEFAULT '230';
+ALTER TABLE `custom_npc` MODIFY `aggro` smallint(4) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `matkspd` smallint(4) NOT NULL DEFAULT '333';
+ALTER TABLE `custom_npc` MODIFY `rhand` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `lhand` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `armor` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `enchant` tinyint(1) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `walkspd` smallint(3) NOT NULL DEFAULT '60';
+ALTER TABLE `custom_npc` MODIFY `runspd` smallint(3) NOT NULL DEFAULT '120';
+ALTER TABLE `custom_npc` MODIFY `isUndead` tinyint(1) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `dropHerbGroup` tinyint(1) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npc` MODIFY `basestats` tinyint(1) NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_npcskills`
-MODIFY `npcid` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `skillid` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `level` tinyint(2) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npcskills` MODIFY `npcid` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npcskills` MODIFY `skillid` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_npcskills` MODIFY `level` tinyint(2) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_teleport`
-MODIFY `Description` varchar(75) DEFAULT NULL,
-MODIFY `id` mediumint(7) unsigned NOT NULL DEFAULT '0',
-MODIFY `loc_x` mediumint(6) DEFAULT NULL,
-MODIFY `loc_y` mediumint(6) DEFAULT NULL,
-MODIFY `loc_z` mediumint(6) DEFAULT NULL,
-MODIFY `price` int(10) unsigned DEFAULT NULL,
-MODIFY `fornoble` tinyint(1) NOT NULL DEFAULT '0',
-MODIFY `itemId` smallint(5) unsigned NOT NULL DEFAULT '57';
+ALTER TABLE `custom_teleport` MODIFY `Description` varchar(75) DEFAULT NULL;
+ALTER TABLE `custom_teleport` MODIFY `id` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_teleport` MODIFY `loc_x` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_teleport` MODIFY `loc_y` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_teleport` MODIFY `loc_z` mediumint(6) DEFAULT NULL;
+ALTER TABLE `custom_teleport` MODIFY `price` int(10) unsigned DEFAULT NULL;
+ALTER TABLE `custom_teleport` MODIFY `fornoble` tinyint(1) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_teleport` MODIFY `itemId` smallint(5) unsigned NOT NULL DEFAULT '57';

+ 13 - 14
L2J_DataPack_BETA/dist/sql/game/updates/20101004update.sql

@@ -1,14 +1,13 @@
-ALTER TABLE `custom_spawnlist`
-MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
-MODIFY `location` varchar(40) NOT NULL DEFAULT '',
-MODIFY `count` tinyint(1) unsigned NOT NULL DEFAULT '0',
-MODIFY `npc_templateid` mediumint(7) unsigned NOT NULL DEFAULT '0',
-MODIFY `locx` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `locy` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `locz` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `randomx` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `randomy` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `heading` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `respawn_delay` mediumint(5) NOT NULL DEFAULT '0',
-MODIFY `loc_id` int(9) NOT NULL DEFAULT '0',
-MODIFY `periodOfDay` tinyint(1) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT;
+ALTER TABLE `custom_spawnlist` MODIFY `location` varchar(40) NOT NULL DEFAULT '';
+ALTER TABLE `custom_spawnlist` MODIFY `count` tinyint(1) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `npc_templateid` mediumint(7) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `locx` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `locy` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `locz` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `randomx` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `randomy` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `heading` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `respawn_delay` mediumint(5) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `loc_id` int(9) NOT NULL DEFAULT '0';
+ALTER TABLE `custom_spawnlist` MODIFY `periodOfDay` tinyint(1) unsigned NOT NULL DEFAULT '0';

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/updates/20101119update.sql

@@ -46,4 +46,4 @@ UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(480*60*1000) WHERE time <=
 UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(720*60*1000) WHERE time <= 0 AND item_id IN (20107,20108);
 UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(300*60*1000) WHERE time <= 0 AND item_id IN (20335,20336,20341,20342,20347,20348,20570);
 UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(120*60*1000) WHERE time <= 0 AND item_id IN (20712,20713,20714,20715,20716);
-UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(60*60*1000) WHERE time <= 0 AND item_id IN (20741,20742,21084,21086);
+UPDATE `items` SET time=(unix_timestamp(NOW())*1000)+(60*60*1000) WHERE time <= 0 AND item_id IN (20741,20742,21084,21086);

+ 5 - 6
L2J_DataPack_BETA/dist/sql/game/updates/20110112update.sql

@@ -1,6 +1,5 @@
-ALTER TABLE `character_offline_trade_items`
-MODIFY `charId` int(10) unsigned NOT NULL DEFAULT '0',
-MODIFY `item` int(10) unsigned NOT NULL DEFAULT '0',
-MODIFY `count` bigint(20) unsigned NOT NULL DEFAULT '0',
-MODIFY `price` bigint(20) unsigned NOT NULL DEFAULT '0',
-DROP PRIMARY KEY;
+ALTER TABLE `character_offline_trade_items` MODIFY `charId` int(10) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_offline_trade_items` MODIFY `item` int(10) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_offline_trade_items` MODIFY `count` bigint(20) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_offline_trade_items` MODIFY `price` bigint(20) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_offline_trade_items` DROP PRIMARY KEY;

+ 4 - 7
L2J_DataPack_BETA/dist/sql/game/updates/20110210update.sql

@@ -1,12 +1,9 @@
-ALTER TABLE `character_offline_trade_items`
-MODIFY `charId` int(10) unsigned NOT NULL;
+ALTER TABLE `character_offline_trade_items` MODIFY `charId` int(10) unsigned NOT NULL;
 
-ALTER TABLE `character_offline_trade`
-MODIFY `charId` int(10) unsigned NOT NULL;
+ALTER TABLE `character_offline_trade` MODIFY `charId` int(10) unsigned NOT NULL;
 
 UPDATE `character_reco_bonus` SET `rec_have`=255 WHERE `rec_have`>255;
 UPDATE `character_reco_bonus` SET `rec_left`=255 WHERE `rec_left`>255;
 
-ALTER TABLE `character_reco_bonus`
-MODIFY `rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0',
-MODIFY `rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_reco_bonus` MODIFY `rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_reco_bonus` MODIFY `rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0';

+ 43 - 74
L2J_DataPack_BETA/dist/sql/game/updates/20110316update.sql

@@ -1,104 +1,73 @@
-ALTER TABLE `auction`
-MODIFY `endDate` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `auction` MODIFY `endDate` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `auction_bid`
-MODIFY `time_bid` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `auction_bid` MODIFY `time_bid` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `castle`
-MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `castle` MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `castle` MODIFY `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `castle_functions`
-MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `castle_functions` MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `character_instance_time`
-MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_instance_time` MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `character_offline_trade`
-MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_offline_trade` MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `character_skills_save`
-MODIFY `systime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_skills_save` MODIFY `systime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `character_reco_bonus`
-MODIFY `time_left` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_reco_bonus` MODIFY `time_left` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `characters`
-MODIFY `deletetime` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `createTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `characters` MODIFY `deletetime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `characters` MODIFY `lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `characters` MODIFY `clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `characters` MODIFY `clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `characters` MODIFY `createTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `clan_data`
-MODIFY `ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `clan_data` MODIFY `ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `clan_data` MODIFY `char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `clan_data` MODIFY `dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `clanhall`
-MODIFY `paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `clanhall` MODIFY `paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `clanhall_functions`
-MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `clanhall_functions` MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `cursed_weapons`
-MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `cursed_weapons` MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `fort`
-MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `fort` MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `fort` MODIFY `lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `fort_functions`
-MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `fort_functions` MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `grandboss_data`
-MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `games`
-MODIFY `enddate` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `games` MODIFY `enddate` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `global_tasks`
-MODIFY `last_activation` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `global_tasks` MODIFY `last_activation` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `heroes_diary`
-MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `heroes_diary` MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `item_auction`
-MODIFY `startingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `endingTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `item_auction` MODIFY `startingTime` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `item_auction` MODIFY `endingTime` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `itemsonground`
-MODIFY `drop_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `itemsonground` MODIFY `drop_time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `messages`
-MODIFY `expiration` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `messages` MODIFY `expiration` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `merchant_buylists`
-MODIFY `savetimer` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `merchant_buylists` MODIFY `savetimer` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `olympiad_data`
-MODIFY `olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `validation_end` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `olympiad_data` MODIFY `olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `olympiad_data` MODIFY `validation_end` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `olympiad_data` MODIFY `next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `olympiad_fights`
-MODIFY `start` bigint(13) unsigned NOT NULL DEFAULT '0',
-MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `olympiad_fights` MODIFY `start` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `olympiad_fights` MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `posts`
-MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `posts` MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `raidboss_spawnlist`
-MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `raidboss_spawnlist` MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `seven_signs_festival`
-MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `seven_signs_festival` MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `seven_signs_status`
-MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `seven_signs_status` MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `topic`
-MODIFY `topic_date` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `topic` MODIFY `topic_date` bigint(13) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `custom_merchant_buylists`
-MODIFY `savetimer` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `custom_merchant_buylists` MODIFY `savetimer` bigint(13) unsigned NOT NULL DEFAULT '0';

+ 19 - 21
L2J_DataPack_BETA/dist/sql/game/updates/20110320update.sql

@@ -1,22 +1,20 @@
-ALTER TABLE `custom_npc`
-MODIFY `hp` decimal(30,15) DEFAULT NULL,
-MODIFY `mp` decimal(30,15) DEFAULT NULL,
-MODIFY `hpreg` decimal(30,15) DEFAULT NULL,
-MODIFY `mpreg` decimal(30,15) DEFAULT NULL,
-MODIFY `patk` decimal(12,5) DEFAULT NULL,
-MODIFY `pdef` decimal(12,5) DEFAULT NULL,
-MODIFY `matk` decimal(12,5) DEFAULT NULL,
-MODIFY `mdef` decimal(12,5) DEFAULT NULL,
-MODIFY `walkspd` decimal(10,5) NOT NULL DEFAULT '60',
-MODIFY `runspd` decimal(10,5) NOT NULL DEFAULT '120',
-ADD `basestats` tinyint(1) NOT NULL DEFAULT '0' AFTER `dropHerbGroup`;
+ALTER TABLE `custom_npc` MODIFY `hp` decimal(30,15) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mp` decimal(30,15) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `hpreg` decimal(30,15) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mpreg` decimal(30,15) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `patk` decimal(12,5) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `pdef` decimal(12,5) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `matk` decimal(12,5) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `mdef` decimal(12,5) DEFAULT NULL;
+ALTER TABLE `custom_npc` MODIFY `walkspd` decimal(10,5) NOT NULL DEFAULT '60';
+ALTER TABLE `custom_npc` MODIFY `runspd` decimal(10,5) NOT NULL DEFAULT '120';
+ALTER TABLE `custom_npc` ADD `basestats` tinyint(1) NOT NULL DEFAULT '0' AFTER `dropHerbGroup`;
 
-ALTER TABLE `grandboss_data`
-MODIFY `boss_id` smallint(5) unsigned NOT NULL DEFAULT '0',
-MODIFY `loc_x` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `loc_y` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `loc_z` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `heading` mediumint(6) NOT NULL DEFAULT '0',
-MODIFY `currentHP` decimal(30,15) NOT NULL,
-MODIFY `currentMP` decimal(30,15) NOT NULL,
-MODIFY `status` tinyint(1) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `boss_id` smallint(5) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `loc_x` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `loc_y` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `loc_z` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `heading` mediumint(6) NOT NULL DEFAULT '0';
+ALTER TABLE `grandboss_data` MODIFY `currentHP` decimal(30,15) NOT NULL;
+ALTER TABLE `grandboss_data` MODIFY `currentMP` decimal(30,15) NOT NULL;
+ALTER TABLE `grandboss_data` MODIFY `status` tinyint(1) unsigned NOT NULL DEFAULT '0';

+ 2 - 3
L2J_DataPack_BETA/dist/sql/game/updates/20110511update.sql

@@ -1,5 +1,4 @@
 ALTER TABLE `castle` ADD COLUMN `bloodAlliance` int(3) NOT NULL DEFAULT 0 AFTER `showNpcCrest`;
 
-ALTER TABLE `pets`
-ADD COLUMN `ownerId` int(10) NOT NULL DEFAULT '0' AFTER `fed`,
-ADD COLUMN `restore` enum('true','false') NOT NULL DEFAULT 'false' AFTER `ownerId`;
+ALTER TABLE `pets` ADD COLUMN `ownerId` int(10) NOT NULL DEFAULT '0' AFTER `fed`;
+ALTER TABLE `pets` ADD COLUMN `restore` enum('true','false') NOT NULL DEFAULT 'false' AFTER `ownerId`;

+ 15 - 17
L2J_DataPack_BETA/dist/sql/game/updates/20110514update.sql

@@ -1,18 +1,16 @@
-ALTER TABLE `character_summons`
-MODIFY `ownerId` int(10) unsigned NOT NULL,
-MODIFY `summonSkillId` int(10) unsigned NOT NULL,
-MODIFY `curHp` int(9) unsigned DEFAULT '0',
-MODIFY `curMp` int(9) unsigned DEFAULT '0',
-MODIFY `time` int(10) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `character_summons` MODIFY `ownerId` int(10) unsigned NOT NULL;
+ALTER TABLE `character_summons` MODIFY `summonSkillId` int(10) unsigned NOT NULL;
+ALTER TABLE `character_summons` MODIFY `curHp` int(9) unsigned DEFAULT '0';
+ALTER TABLE `character_summons` MODIFY `curMp` int(9) unsigned DEFAULT '0';
+ALTER TABLE `character_summons` MODIFY `time` int(10) unsigned NOT NULL DEFAULT '0';
 
-ALTER TABLE `pets`
-MODIFY `item_obj_id` int(10) unsigned NOT NULL,
-MODIFY `name` varchar(16),
-MODIFY `level` smallint(2) unsigned NOT NULL,
-MODIFY `curHp` int(9) unsigned DEFAULT '0',
-MODIFY `curMp` int(9) unsigned DEFAULT '0',
-MODIFY `exp` bigint(20) unsigned DEFAULT '0',
-MODIFY `sp` int(10) unsigned DEFAULT '0',
-MODIFY `fed` int(10) unsigned DEFAULT '0',
-MODIFY `ownerId` int(10) NOT NULL DEFAULT '0',
-MODIFY `restore` enum('true','false') NOT NULL DEFAULT 'false';
+ALTER TABLE `pets` MODIFY `item_obj_id` int(10) unsigned NOT NULL;
+ALTER TABLE `pets` MODIFY `name` varchar(16);
+ALTER TABLE `pets` MODIFY `level` smallint(2) unsigned NOT NULL;
+ALTER TABLE `pets` MODIFY `curHp` int(9) unsigned DEFAULT '0';
+ALTER TABLE `pets` MODIFY `curMp` int(9) unsigned DEFAULT '0';
+ALTER TABLE `pets` MODIFY `exp` bigint(20) unsigned DEFAULT '0';
+ALTER TABLE `pets` MODIFY `sp` int(10) unsigned DEFAULT '0';
+ALTER TABLE `pets` MODIFY `fed` int(10) unsigned DEFAULT '0';
+ALTER TABLE `pets` MODIFY `ownerId` int(10) NOT NULL DEFAULT '0';
+ALTER TABLE `pets` MODIFY `restore` enum('true','false') NOT NULL DEFAULT 'false';

+ 20 - 21
L2J_DataPack_BETA/dist/sql/game/updates/20110809update.sql

@@ -1,21 +1,20 @@
-ALTER TABLE `custom_npcaidata`
-CHANGE `npc_id` `npcId` mediumint(7) unsigned NOT NULL,
-ADD `minSkillChance` tinyint(3) unsigned NOT NULL DEFAULT '7' AFTER `npcId`,
-CHANGE `skill_chance` `maxSkillChance` tinyint(3) unsigned NOT NULL DEFAULT '15',
-CHANGE `primary_attack` `primarySkillId` smallint(5) unsigned DEFAULT '0',
-CHANGE `can_move` `canMove` tinyint(1) unsigned NOT NULL DEFAULT '1',
-CHANGE `minrangeskill` `minRangeSkill` smallint(5) unsigned DEFAULT '0',
-CHANGE `minrangechance` `minRangeChance` tinyint(3) unsigned DEFAULT '0',
-CHANGE `maxrangeskill` `maxRangeSkill` smallint(5) unsigned DEFAULT '0',
-CHANGE `maxrangechance` `maxRangeChance` tinyint(3) unsigned DEFAULT '0',
-CHANGE `soulshot` `soulShot` smallint(4) unsigned DEFAULT '0',
-CHANGE `spiritshot` `spiritShot` smallint(4) unsigned DEFAULT '0',
-CHANGE `spschance` `spsChance` tinyint(3) unsigned DEFAULT '0',
-CHANGE `sschance` `ssChance` tinyint(3) unsigned DEFAULT '0',
-CHANGE `ischaos` `isChaos` smallint(4) unsigned DEFAULT '0',
-MODIFY `clan` varchar(40) DEFAULT NULL,
-CHANGE `clan_range` `clanRange` smallint(4) unsigned DEFAULT '0',
-MODIFY `enemyRange` smallint(4) unsigned DEFAULT '0' AFTER `enemyClan`,
-MODIFY `dodge` tinyint(3) unsigned DEFAULT '0',
-CHANGE `ai_type` `aiType` varchar(8) NOT NULL DEFAULT 'fighter',
-DROP PRIMARY KEY, ADD PRIMARY KEY (`npcId`);
+ALTER TABLE `custom_npcaidata` CHANGE `npc_id` `npcId` mediumint(7) unsigned NOT NULL;
+ALTER TABLE `custom_npcaidata` ADD `minSkillChance` tinyint(3) unsigned NOT NULL DEFAULT '7' AFTER `npcId`;
+ALTER TABLE `custom_npcaidata` CHANGE `skill_chance` `maxSkillChance` tinyint(3) unsigned NOT NULL DEFAULT '15';
+ALTER TABLE `custom_npcaidata` CHANGE `primary_attack` `primarySkillId` smallint(5) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `can_move` `canMove` tinyint(1) unsigned NOT NULL DEFAULT '1';
+ALTER TABLE `custom_npcaidata` CHANGE `minrangeskill` `minRangeSkill` smallint(5) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `minrangechance` `minRangeChance` tinyint(3) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `maxrangeskill` `maxRangeSkill` smallint(5) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `maxrangechance` `maxRangeChance` tinyint(3) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `soulshot` `soulShot` smallint(4) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `spiritshot` `spiritShot` smallint(4) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `spschance` `spsChance` tinyint(3) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `sschance` `ssChance` tinyint(3) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `ischaos` `isChaos` smallint(4) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` MODIFY `clan` varchar(40) DEFAULT NULL;
+ALTER TABLE `custom_npcaidata` CHANGE `clan_range` `clanRange` smallint(4) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` MODIFY `enemyRange` smallint(4) unsigned DEFAULT '0' AFTER `enemyClan`;
+ALTER TABLE `custom_npcaidata` MODIFY `dodge` tinyint(3) unsigned DEFAULT '0';
+ALTER TABLE `custom_npcaidata` CHANGE `ai_type` `aiType` varchar(8) NOT NULL DEFAULT 'fighter';
+ALTER TABLE `custom_npcaidata` DROP PRIMARY KEY, ADD PRIMARY KEY (`npcId`);

+ 2 - 3
L2J_DataPack_BETA/dist/sql/game/updates/20110831update.sql

@@ -2,9 +2,8 @@ ALTER TABLE `characters` ADD `createDate` date NOT NULL DEFAULT '0000-00-00' AFT
 UPDATE `characters` SET `createDate` = FROM_UNIXTIME(`createTime`/1000, '%Y-%m%-%d');
 ALTER TABLE `characters` DROP `createTime`;
 
-ALTER TABLE `messages`
-CHANGE `isFourStars` `sendBySystem` tinyint(1) unsigned NOT NULL DEFAULT '0' AFTER `isLocked`,
-CHANGE `isNews` `isReturned` enum('true','false') NOT NULL DEFAULT 'false' AFTER `sendBySystem`;
+ALTER TABLE `messages` CHANGE `isFourStars` `sendBySystem` tinyint(1) unsigned NOT NULL DEFAULT '0' AFTER `isLocked`;
+ALTER TABLE `messages` CHANGE `isNews` `isReturned` enum('true','false') NOT NULL DEFAULT 'false' AFTER `sendBySystem`;
 
 -- After alter table, false is setted to 2 but should be 0
 UPDATE `messages` SET `sendBySystem` = 0 WHERE `sendBySystem` = 2;

+ 15 - 20
L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql

@@ -1,24 +1,19 @@
-ALTER TABLE `characters`
-ADD KEY `account_name` (`account_name`),
-ADD KEY `char_name` (`char_name`),
-ADD KEY `online` (`online`);
+ALTER TABLE `characters` ADD KEY `account_name` (`account_name`);
+ALTER TABLE `characters` ADD KEY `char_name` (`char_name`);
+ALTER TABLE `characters` ADD KEY `online` (`online`);
 
-ALTER TABLE `clan_subpledges`
-ADD KEY `leader_id` (`leader_id`);
+ALTER TABLE `clan_subpledges` ADD KEY `leader_id` (`leader_id`);
 
-ALTER TABLE `clanhall`
-ADD KEY `ownerId` (`ownerId`);
+ALTER TABLE `clanhall` ADD KEY `ownerId` (`ownerId`);
 
-ALTER TABLE `clan_wars`
-ADD KEY `clan1` (`clan1`),
-ADD KEY `clan2` (`clan2`);
+ALTER TABLE `clan_wars` ADD KEY `clan1` (`clan1`);
+ALTER TABLE `clan_wars` ADD KEY `clan2` (`clan2`);
 
-ALTER TABLE `items`
-DROP KEY `key_owner_id`,
-DROP KEY `key_loc`,
-DROP KEY `key_item_id`,
-DROP KEY `key_time_of_use`,
-ADD KEY `owner_id` (`owner_id`),
-ADD KEY `item_id` (`item_id`),
-ADD KEY `loc` (`loc`),
-ADD KEY `time_of_use` (`time_of_use`);
+ALTER TABLE `items` DROP KEY `key_owner_id`;
+ALTER TABLE `items` DROP KEY `key_loc`;
+ALTER TABLE `items` DROP KEY `key_item_id`;
+ALTER TABLE `items` DROP KEY `key_time_of_use`;
+ALTER TABLE `items` ADD KEY `owner_id` (`owner_id`);
+ALTER TABLE `items` ADD KEY `item_id` (`item_id`);
+ALTER TABLE `items` ADD KEY `loc` (`loc`);
+ALTER TABLE `items` ADD KEY `time_of_use` (`time_of_use`);

+ 3 - 4
L2J_DataPack_BETA/dist/sql/login/updates/20080117update.sql

@@ -1,4 +1,3 @@
-ALTER TABLE `accounts`
-CHANGE `access_level` `accessLevel` TINYINT NOT NULL DEFAULT 0,
-MODIFY `lastIP` CHAR( 15 ) NULL DEFAULT NULL ,
-MODIFY `lastServer` TINYINT UNSIGNED NULL DEFAULT '1';
+ALTER TABLE `accounts` CHANGE `access_level` `accessLevel` TINYINT NOT NULL DEFAULT '0';
+ALTER TABLE `accounts` MODIFY `lastIP` CHAR(15) NULL DEFAULT NULL;
+ALTER TABLE `accounts` MODIFY `lastServer` TINYINT UNSIGNED NULL DEFAULT '1';

+ 6 - 6
L2J_DataPack_BETA/dist/sql/login/updates/20100208update.sql

@@ -1,6 +1,6 @@
-ALTER TABLE `accounts` ADD  `userIP` char(15) DEFAULT NULL;
-ALTER TABLE `accounts` ADD  `pcIp` char(15) DEFAULT NULL;
-ALTER TABLE `accounts` ADD  `hop1` char(15) DEFAULT NULL;
-ALTER TABLE `accounts` ADD  `hop2` char(15) DEFAULT NULL;
-ALTER TABLE `accounts` ADD  `hop3` char(15) DEFAULT NULL;
-ALTER TABLE `accounts` ADD  `hop4` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `userIP` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `pcIp` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `hop1` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `hop2` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `hop3` char(15) DEFAULT NULL;
+ALTER TABLE `accounts` ADD `hop4` char(15) DEFAULT NULL;

+ 1 - 2
L2J_DataPack_BETA/dist/sql/login/updates/20110316update.sql

@@ -1,2 +1 @@
-ALTER TABLE `accounts`
-MODIFY `lastactive` bigint(13) unsigned NOT NULL DEFAULT '0';
+ALTER TABLE `accounts` MODIFY `lastactive` bigint(13) unsigned NOT NULL DEFAULT '0';