Skip to content

Commit

Permalink
[z2819] Item: Adjust itemTextId in item_instance to correspond to pac…
Browse files Browse the repository at this point in the history
…ket, load and item_text width
  • Loading branch information
killerwife committed Mar 24, 2024
1 parent 276a0b2 commit bdddb34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sql/base/characters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_z2799_01_characters_account_data` bit(1) DEFAULT NULL
`required_z2819_01_characters_item_instance_text_id_fix` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

--
Expand Down Expand Up @@ -1127,7 +1127,7 @@ CREATE TABLE `item_instance` (
`enchantments` text NOT NULL,
`randomPropertyId` smallint(5) NOT NULL default '0',
`durability` int(5) unsigned NOT NULL default '0',
`itemTextId` mediumint(8) unsigned NOT NULL default '0',
`itemTextId` int(8) unsigned NOT NULL default '0',
PRIMARY KEY (`guid`),
KEY `idx_owner_guid` (`owner_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE character_db_version CHANGE COLUMN required_z2799_01_characters_account_data required_z2819_01_characters_item_instance_text_id_fix bit;

-- did not correspond to core load and item_text column and packet field width
ALTER TABLE item_instance MODIFY `itemTextId` INT UNSIGNED NOT NULL DEFAULT 0;

2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#define __REVISION_SQL_H__
#define REVISION_DB_REALMD "required_z2800_01_realmd_platform"
#define REVISION_DB_LOGS "required_z2778_01_logs_anticheat"
#define REVISION_DB_CHARACTERS "required_z2799_01_characters_account_data"
#define REVISION_DB_CHARACTERS "required_z2819_01_characters_item_instance_text_id_fix"
#define REVISION_DB_MANGOS "required_z2818_01_mangos_spell_template_ap"
#endif // __REVISION_SQL_H__

0 comments on commit bdddb34

Please sign in to comment.