diff options
| author | ShinDarth <borzifrancesco@gmail.com> | 2014-08-28 15:32:38 +0100 |
|---|---|---|
| committer | DDuarte <dnpd.dd@gmail.com> | 2014-08-28 15:32:38 +0100 |
| commit | b65172910c4f65c3ddd3a7c7ca3d3c7330f4a1f0 (patch) | |
| tree | b40c3caabbdecdabfe9ba4cba6a472d151c14007 /sql | |
| parent | cbeaa6703cdfa17cf340d3f933b61473732c2d74 (diff) | |
Core/BattleGrounds: store data about BGs victories
Enable in worldserver.conf
Closes #12944
Signed-off-by: DDuarte <dnpd.dd@gmail.com>
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/base/characters_database.sql | 62 | ||||
| -rw-r--r-- | sql/updates/characters/2014_08_28_00_characters_pvpstats.sql | 28 |
2 files changed, 89 insertions, 1 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index c7e1372e9a1..6e3ab43e4ac 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -2379,6 +2379,66 @@ LOCK TABLES `pool_quest_save` WRITE; UNLOCK TABLES; -- +-- Table structure for table `pvpstats_battlegrounds` +-- + +DROP TABLE IF EXISTS `pvpstats_battlegrounds`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `pvpstats_battlegrounds` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `winner_faction` tinyint(4) NOT NULL, + `bracket_id` tinyint(3) unsigned NOT NULL, + `type` tinyint(3) unsigned NOT NULL, + `date` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `pvpstats_battlegrounds` +-- + +LOCK TABLES `pvpstats_battlegrounds` WRITE; +/*!40000 ALTER TABLE `pvpstats_battlegrounds` DISABLE KEYS */; +/*!40000 ALTER TABLE `pvpstats_battlegrounds` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `pvpstats_players` +-- + +DROP TABLE IF EXISTS `pvpstats_players`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `pvpstats_players` ( + `battleground_id` bigint(20) unsigned NOT NULL, + `character_guid` int(10) unsigned NOT NULL, + `score_killing_blows` mediumint(8) unsigned NOT NULL, + `score_deaths` mediumint(8) unsigned NOT NULL, + `score_honorable_kills` mediumint(8) unsigned NOT NULL, + `score_bonus_honor` mediumint(8) unsigned NOT NULL, + `score_damage_done` mediumint(8) unsigned NOT NULL, + `score_healing_done` mediumint(8) unsigned NOT NULL, + `attr_1` mediumint(8) unsigned NOT NULL DEFAULT '0', + `attr_2` mediumint(8) unsigned NOT NULL DEFAULT '0', + `attr_3` mediumint(8) unsigned NOT NULL DEFAULT '0', + `attr_4` mediumint(8) unsigned NOT NULL DEFAULT '0', + `attr_5` mediumint(8) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`battleground_id`,`character_guid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `pvpstats_players` +-- + +LOCK TABLES `pvpstats_players` WRITE; +/*!40000 ALTER TABLE `pvpstats_players` DISABLE KEYS */; +/*!40000 ALTER TABLE `pvpstats_players` ENABLE KEYS */; +UNLOCK TABLES; + +-- -- Table structure for table `reserved_name` -- @@ -2457,4 +2517,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2014-01-26 14:39:20 +-- Dump completed on 2014-08-28 15:30:47 diff --git a/sql/updates/characters/2014_08_28_00_characters_pvpstats.sql b/sql/updates/characters/2014_08_28_00_characters_pvpstats.sql new file mode 100644 index 00000000000..0e3c239f8e6 --- /dev/null +++ b/sql/updates/characters/2014_08_28_00_characters_pvpstats.sql @@ -0,0 +1,28 @@ +DROP TABLE IF EXISTS `pvpstats_battlegrounds`; +CREATE TABLE `pvpstats_battlegrounds` ( + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + `winner_faction` TINYINT NOT NULL, + `bracket_id` TINYINT UNSIGNED NOT NULL, + `type` TINYINT UNSIGNED NOT NULL, + `date` DATETIME NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB; + +DROP TABLE IF EXISTS `pvpstats_players`; +CREATE TABLE `pvpstats_players` ( + `battleground_id` BIGINT UNSIGNED NOT NULL, + `character_guid` INT UNSIGNED NOT NULL, + `score_killing_blows` MEDIUMINT UNSIGNED NOT NULL, + `score_deaths` MEDIUMINT UNSIGNED NOT NULL, + `score_honorable_kills` MEDIUMINT UNSIGNED NOT NULL, + `score_bonus_honor` MEDIUMINT UNSIGNED NOT NULL, + `score_damage_done` MEDIUMINT UNSIGNED NOT NULL, + `score_healing_done` MEDIUMINT UNSIGNED NOT NULL, + `attr_1` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, + `attr_2` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, + `attr_3` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, + `attr_4` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, + `attr_5` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, + PRIMARY KEY (`battleground_id`, `character_guid`) +) ENGINE=InnoDB; + |
