diff --git a/sql/base/characters.sql b/sql/base/characters.sql index a973ca283b..156269f277 100644 --- a/sql/base/characters.sql +++ b/sql/base/characters.sql @@ -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'; -- @@ -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'; diff --git a/sql/updates/characters/z2819_01_characters_item_instance_text_id_fix.sql b/sql/updates/characters/z2819_01_characters_item_instance_text_id_fix.sql new file mode 100644 index 0000000000..3425f2b4e6 --- /dev/null +++ b/sql/updates/characters/z2819_01_characters_item_instance_text_id_fix.sql @@ -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; + diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index ac246940fe..831597ad76 100644 --- a/src/shared/revision_sql.h +++ b/src/shared/revision_sql.h @@ -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__