reorganized sql

This commit is contained in:
Yehonal 2016-07-10 17:15:46 +02:00
parent 97c3f36d2b
commit ac2d30abe1
234 changed files with 39 additions and 1 deletions

View file

@ -1,6 +1,6 @@
-- MySQL dump 10.13 Distrib 5.6.10, for Win64 (x86_64)
--
-- Host: localhost Database: clean_logon
-- Host: localhost Database: clean_auth
-- ------------------------------------------------------
-- Server version 5.6.10

View file

@ -0,0 +1,3 @@
CREATE TABLE `auth_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

View file

@ -0,0 +1 @@
ALTER TABLE auth_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;

View file

@ -0,0 +1,3 @@
CREATE TABLE `characters_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

View file

@ -0,0 +1 @@
ALTER TABLE characters_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;

View file

@ -0,0 +1,3 @@
CREATE TABLE `world_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

View file

@ -0,0 +1 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;

View file

@ -0,0 +1,26 @@
CREATE TABLE IF NOT EXISTS `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;
CREATE TABLE IF NOT EXISTS `pvpstats_players` (
`battleground_id` bigint(20) unsigned NOT NULL,
`character_guid` int(10) unsigned NOT NULL,
`winner` bit(1) 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;

Some files were not shown because too many files have changed in this diff Show more