aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/characters.sql16
-rw-r--r--sql/updates/7611_characters_item_refund_instance.sql14
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