fix(Core/playercreateinfo_item): Alter amount of allowed items (#3122)

* Change table `amount` to SMALLINT Unsigned

* Add a note column

* Remove deprecated item
This commit is contained in:
Kitzunu
2020-08-03 15:01:22 +02:00
committed by GitHub
parent 3f1adefbd5
commit 4e76485037
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1591992052509403400');
DELETE FROM `playercreateinfo_item` WHERE `itemid` = 40582 AND `amount` = -1;
ALTER TABLE `playercreateinfo_item`
CHANGE `amount` `amount` SMALLINT UNSIGNED NOT NULL DEFAULT 1,
ADD `Note` VARCHAR(255) AFTER `amount`;

View File

@@ -3333,7 +3333,7 @@ void ObjectMgr::LoadPlayerInfo()
continue;
}
int32 amount = fields[3].GetInt8();
int32 amount = fields[3].GetUInt16();
if (!amount)
{