mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Merge pull request #13809 from AriDEV/6.x
Server/PacketIO: Currency Updates
This commit is contained in:
@@ -636,11 +636,13 @@ DROP TABLE IF EXISTS `character_currency`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `character_currency` (
|
||||
`guid` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||
`currency` smallint(5) unsigned NOT NULL,
|
||||
`total_count` int(10) unsigned NOT NULL,
|
||||
`week_count` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`guid`,`currency`)
|
||||
`CharacterGuid` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||
`Currency` smallint(5) unsigned NOT NULL,
|
||||
`Quantity` int(10) unsigned NOT NULL,
|
||||
`WeeklyQuantity` int(10) unsigned NOT NULL,
|
||||
`TrackedQuantity` int(10) unsigned NOT NULL,
|
||||
`Flags` tinyint(3) unsigned NOT NULL,
|
||||
PRIMARY KEY (`CharacterGuid`,`Currency`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
21
sql/updates/characters/2015_01_02_00_characters.sql
Normal file
21
sql/updates/characters/2015_01_02_00_characters.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
DROP TABLE IF EXISTS `character_currency`;
|
||||
CREATE TABLE `character_currency` (
|
||||
`CharacterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`Currency` SMALLINT(5) UNSIGNED NOT NULL,
|
||||
`Quantity` INT(10) UNSIGNED NOT NULL,
|
||||
`WeeklyQuantity` INT(10) UNSIGNED NOT NULL,
|
||||
`TrackedQuantity` INT(10) UNSIGNED NOT NULL,
|
||||
`Flags` TINYINT(3) UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (`CharacterGuid`, `Currency`)
|
||||
)
|
||||
COLLATE='utf8_general_ci'
|
||||
ENGINE=InnoDB;
|
||||
*/
|
||||
ALTER TABLE `character_currency`
|
||||
CHANGE COLUMN `guid` `CharacterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' FIRST,
|
||||
CHANGE COLUMN `currency` `Currency` SMALLINT(5) UNSIGNED NOT NULL AFTER `CharacterGuid`,
|
||||
CHANGE COLUMN `total_count` `Quantity` INT(10) UNSIGNED NOT NULL AFTER `Currency`,
|
||||
CHANGE COLUMN `week_count` `WeeklyQuantity` INT(10) UNSIGNED NOT NULL AFTER `Quantity`,
|
||||
ADD COLUMN `TrackedQuantity` INT(10) UNSIGNED NOT NULL AFTER `WeeklyQuantity`,
|
||||
ADD COLUMN `Flags` TINYINT(3) UNSIGNED NOT NULL AFTER `TrackedQuantity`;
|
||||
Reference in New Issue
Block a user