diff options
author | Machiavelli <none@none> | 2010-03-18 22:56:48 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-03-18 22:56:48 +0100 |
commit | 35a7f4849e161ebab96120a091cce7ed40bb5fc8 (patch) | |
tree | 495f4a04523ddec2ac31c217b3f87745ec95759c /sql | |
parent | ef57a96ccec821ca63cdf0a6b9f73f6df174fc7f (diff) |
Store alternate currency spent on an item by Item ExtendedCost entry instead of honorPts/arenaPts/items seperately. Thanks to Opterman for the idea.
--HG--
branch : trunk
Diffstat (limited to 'sql')
-rw-r--r-- | sql/characters.sql | 16 | ||||
-rw-r--r-- | sql/updates/7611_characters_item_refund_instance.sql | 14 |
2 files changed, 30 insertions, 0 deletions
diff --git a/sql/characters.sql b/sql/characters.sql index 2ef0a8553d6..66c1f028204 100644 --- a/sql/characters.sql +++ b/sql/characters.sql @@ -1617,6 +1617,22 @@ LOCK TABLES `item_instance` WRITE; UNLOCK TABLES; -- +-- Table structure for table `item_refund_instance` +-- + +DROP TABLE IF EXISTS `item_refund_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `item_refund_instance` ( + `item_guid` int(11) unsigned NOT NULL COMMENT 'Item GUID', + `player_guid` int(11) unsigned NOT NULL COMMENT 'Player GUID', + `paidMoney` int(11) unsigned NOT NULL DEFAULT '0', + `paidExtendedCost` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`item_guid`,`player_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item Refund System'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- -- Table structure for table `item_text` -- diff --git a/sql/updates/7611_characters_item_refund_instance.sql b/sql/updates/7611_characters_item_refund_instance.sql new file mode 100644 index 00000000000..c75a180f731 --- /dev/null +++ b/sql/updates/7611_characters_item_refund_instance.sql @@ -0,0 +1,14 @@ +ALTER TABLE `item_refund_instance` +DROP COLUMN `paidHonor`, +DROP COLUMN `paidArena`, +DROP COLUMN `paidItem_1`, +DROP COLUMN `paidItemCount_1`, +DROP COLUMN `paidItem_2`, +DROP COLUMN `paidItemCount_2`, +DROP COLUMN `paidItem_3`, +DROP COLUMN `paidItemCount_3`, +DROP COLUMN `paidItem_4`, +DROP COLUMN `paidItemCount_4`, +DROP COLUMN `paidItem_5`, +DROP COLUMN `paidItemCount_5`, +ADD COLUMN `paidExtendedCost` int(11) unsigned NOT NULL DEFAULT '0';
\ No newline at end of file |