Skip to content

Commit

Permalink
[s2473] 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 Feb 10, 2024
1 parent e2f12f0 commit e9184f2
Show file tree
Hide file tree
Showing 3 changed files with 9 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_s2452_01_characters_fishingSteps` bit(1) DEFAULT NULL
`required_s2473_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 @@ -1420,7 +1420,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,6 @@
ALTER TABLE character_db_version CHANGE COLUMN required_s2452_01_characters_fishingSteps required_s2473_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_s2455_01_realmd_platform"
#define REVISION_DB_LOGS "required_s2433_01_logs_anticheat"
#define REVISION_DB_CHARACTERS "required_s2452_01_characters_fishingSteps"
#define REVISION_DB_CHARACTERS "required_s2473_01_characters_item_instance_text_id_fix"
#define REVISION_DB_MANGOS "required_s2472_01_mangos_precision_decimal"
#endif // __REVISION_SQL_H__

0 comments on commit e9184f2

Please sign in to comment.