From 35a7f4849e161ebab96120a091cce7ed40bb5fc8 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 18 Mar 2010 22:56:48 +0100 Subject: 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 --- sql/characters.sql | 16 ++++++++++++++++ sql/updates/7611_characters_item_refund_instance.sql | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 sql/updates/7611_characters_item_refund_instance.sql (limited to 'sql') diff --git a/sql/characters.sql b/sql/characters.sql index 2ef0a8553d6..66c1f028204 100644 --- a/sql/characters.sql +++ b/sql/characters.sql @@ -1616,6 +1616,22 @@ LOCK TABLES `item_instance` WRITE; /*!40000 ALTER TABLE `item_instance` ENABLE KEYS */; 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 -- cgit v1.2.3