mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Structure
* some more corrections to field types - quests: rewardArenaPoints - unsigned -> signed - events: unify event id - tinyint -> smallint - objects: unify quest id - smallint -> mediumint - item_stats: stat cols - smallint -> mediumint (Tester Ring has 64k HP+MP)
This commit is contained in:
@@ -809,7 +809,7 @@ DROP TABLE IF EXISTS `aowow_events`;
|
|||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
/*!40101 SET character_set_client = utf8mb4 */;
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
CREATE TABLE `aowow_events` (
|
CREATE TABLE `aowow_events` (
|
||||||
`id` tinyint unsigned NOT NULL,
|
`id` smallint unsigned NOT NULL,
|
||||||
`holidayId` mediumint unsigned NOT NULL DEFAULT 0,
|
`holidayId` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
`cuFlags` int unsigned NOT NULL DEFAULT 0 COMMENT 'see defines.php for flags',
|
`cuFlags` int unsigned NOT NULL DEFAULT 0 COMMENT 'see defines.php for flags',
|
||||||
`startTime` int NOT NULL,
|
`startTime` int NOT NULL,
|
||||||
@@ -1116,70 +1116,70 @@ CREATE TABLE `aowow_item_stats` (
|
|||||||
`rgddps` float(8,2) NOT NULL DEFAULT 0.00,
|
`rgddps` float(8,2) NOT NULL DEFAULT 0.00,
|
||||||
`dmg` float(8,2) NOT NULL DEFAULT 0.00,
|
`dmg` float(8,2) NOT NULL DEFAULT 0.00,
|
||||||
`damagetype` tinyint NOT NULL DEFAULT 0,
|
`damagetype` tinyint NOT NULL DEFAULT 0,
|
||||||
`mana` smallint NOT NULL DEFAULT 0,
|
`mana` mediumint NOT NULL DEFAULT 0,
|
||||||
`health` smallint NOT NULL DEFAULT 0,
|
`health` mediumint NOT NULL DEFAULT 0,
|
||||||
`agi` smallint NOT NULL DEFAULT 0,
|
`agi` mediumint NOT NULL DEFAULT 0,
|
||||||
`str` smallint NOT NULL DEFAULT 0,
|
`str` mediumint NOT NULL DEFAULT 0,
|
||||||
`int` smallint NOT NULL DEFAULT 0,
|
`int` mediumint NOT NULL DEFAULT 0,
|
||||||
`spi` smallint NOT NULL DEFAULT 0,
|
`spi` mediumint NOT NULL DEFAULT 0,
|
||||||
`sta` smallint NOT NULL DEFAULT 0,
|
`sta` mediumint NOT NULL DEFAULT 0,
|
||||||
`energy` smallint NOT NULL DEFAULT 0,
|
`energy` mediumint NOT NULL DEFAULT 0,
|
||||||
`rage` smallint NOT NULL DEFAULT 0,
|
`rage` mediumint NOT NULL DEFAULT 0,
|
||||||
`focus` smallint NOT NULL DEFAULT 0,
|
`focus` mediumint NOT NULL DEFAULT 0,
|
||||||
`runicpwr` smallint NOT NULL DEFAULT 0,
|
`runicpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`defrtng` smallint NOT NULL DEFAULT 0,
|
`defrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`dodgertng` smallint NOT NULL DEFAULT 0,
|
`dodgertng` mediumint NOT NULL DEFAULT 0,
|
||||||
`parryrtng` smallint NOT NULL DEFAULT 0,
|
`parryrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`blockrtng` smallint NOT NULL DEFAULT 0,
|
`blockrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`mlehitrtng` smallint NOT NULL DEFAULT 0,
|
`mlehitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`rgdhitrtng` smallint NOT NULL DEFAULT 0,
|
`rgdhitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`splhitrtng` smallint NOT NULL DEFAULT 0,
|
`splhitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`mlecritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`mlecritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`rgdcritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`rgdcritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`splcritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`splcritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_mlehitrtng` smallint NOT NULL DEFAULT 0,
|
`_mlehitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_rgdhitrtng` smallint NOT NULL DEFAULT 0,
|
`_rgdhitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_splhitrtng` smallint NOT NULL DEFAULT 0,
|
`_splhitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_mlecritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`_mlecritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_rgdcritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`_rgdcritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_splcritstrkrtng` smallint NOT NULL DEFAULT 0,
|
`_splcritstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`mlehastertng` smallint NOT NULL DEFAULT 0,
|
`mlehastertng` mediumint NOT NULL DEFAULT 0,
|
||||||
`rgdhastertng` smallint NOT NULL DEFAULT 0,
|
`rgdhastertng` mediumint NOT NULL DEFAULT 0,
|
||||||
`splhastertng` smallint NOT NULL DEFAULT 0,
|
`splhastertng` mediumint NOT NULL DEFAULT 0,
|
||||||
`hitrtng` smallint NOT NULL DEFAULT 0,
|
`hitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`critstrkrtng` smallint NOT NULL DEFAULT 0,
|
`critstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_hitrtng` smallint NOT NULL DEFAULT 0,
|
`_hitrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`_critstrkrtng` smallint NOT NULL DEFAULT 0,
|
`_critstrkrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`resirtng` smallint NOT NULL DEFAULT 0,
|
`resirtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`hastertng` smallint NOT NULL DEFAULT 0,
|
`hastertng` mediumint NOT NULL DEFAULT 0,
|
||||||
`exprtng` smallint NOT NULL DEFAULT 0,
|
`exprtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`atkpwr` smallint NOT NULL DEFAULT 0,
|
`atkpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`mleatkpwr` smallint NOT NULL DEFAULT 0,
|
`mleatkpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`rgdatkpwr` smallint NOT NULL DEFAULT 0,
|
`rgdatkpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`feratkpwr` smallint NOT NULL DEFAULT 0,
|
`feratkpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`splheal` smallint NOT NULL DEFAULT 0,
|
`splheal` mediumint NOT NULL DEFAULT 0,
|
||||||
`spldmg` smallint NOT NULL DEFAULT 0,
|
`spldmg` mediumint NOT NULL DEFAULT 0,
|
||||||
`manargn` smallint NOT NULL DEFAULT 0,
|
`manargn` mediumint NOT NULL DEFAULT 0,
|
||||||
`armorpenrtng` smallint NOT NULL DEFAULT 0,
|
`armorpenrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`splpwr` smallint NOT NULL DEFAULT 0,
|
`splpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`healthrgn` smallint NOT NULL DEFAULT 0,
|
`healthrgn` mediumint NOT NULL DEFAULT 0,
|
||||||
`splpen` smallint NOT NULL DEFAULT 0,
|
`splpen` mediumint NOT NULL DEFAULT 0,
|
||||||
`block` smallint NOT NULL DEFAULT 0,
|
`block` mediumint NOT NULL DEFAULT 0,
|
||||||
`mastrtng` smallint NOT NULL DEFAULT 0,
|
`mastrtng` mediumint NOT NULL DEFAULT 0,
|
||||||
`armor` smallint NOT NULL DEFAULT 0,
|
`armor` mediumint NOT NULL DEFAULT 0,
|
||||||
`armorbonus` smallint NOT NULL DEFAULT 0,
|
`armorbonus` mediumint NOT NULL DEFAULT 0,
|
||||||
`firres` smallint NOT NULL DEFAULT 0,
|
`firres` mediumint NOT NULL DEFAULT 0,
|
||||||
`frores` smallint NOT NULL DEFAULT 0,
|
`frores` mediumint NOT NULL DEFAULT 0,
|
||||||
`holres` smallint NOT NULL DEFAULT 0,
|
`holres` mediumint NOT NULL DEFAULT 0,
|
||||||
`shares` smallint NOT NULL DEFAULT 0,
|
`shares` mediumint NOT NULL DEFAULT 0,
|
||||||
`natres` smallint NOT NULL DEFAULT 0,
|
`natres` mediumint NOT NULL DEFAULT 0,
|
||||||
`arcres` smallint NOT NULL DEFAULT 0,
|
`arcres` mediumint NOT NULL DEFAULT 0,
|
||||||
`firsplpwr` smallint NOT NULL DEFAULT 0,
|
`firsplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`frosplpwr` smallint NOT NULL DEFAULT 0,
|
`frosplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`holsplpwr` smallint NOT NULL DEFAULT 0,
|
`holsplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`shasplpwr` smallint NOT NULL DEFAULT 0,
|
`shasplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`natsplpwr` smallint NOT NULL DEFAULT 0,
|
`natsplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
`arcsplpwr` smallint NOT NULL DEFAULT 0,
|
`arcsplpwr` mediumint NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`typeId`,`type`)
|
PRIMARY KEY (`typeId`,`type`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
@@ -1713,7 +1713,7 @@ CREATE TABLE `aowow_objects` (
|
|||||||
`reqSkill` smallint unsigned NOT NULL DEFAULT 0,
|
`reqSkill` smallint unsigned NOT NULL DEFAULT 0,
|
||||||
`pageTextId` smallint unsigned NOT NULL DEFAULT 0,
|
`pageTextId` smallint unsigned NOT NULL DEFAULT 0,
|
||||||
`linkedTrap` mediumint unsigned NOT NULL DEFAULT 0,
|
`linkedTrap` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
`reqQuest` smallint NOT NULL DEFAULT 0,
|
`reqQuest` mediumint NOT NULL DEFAULT 0,
|
||||||
`spellFocusId` smallint unsigned NOT NULL DEFAULT 0,
|
`spellFocusId` smallint unsigned NOT NULL DEFAULT 0,
|
||||||
`onUseSpell` mediumint unsigned NOT NULL DEFAULT 0,
|
`onUseSpell` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
`onSuccessSpell` mediumint unsigned NOT NULL DEFAULT 0,
|
`onSuccessSpell` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
@@ -2072,7 +2072,7 @@ CREATE TABLE `aowow_quests` (
|
|||||||
`rewardMailDelay` int unsigned NOT NULL DEFAULT 0,
|
`rewardMailDelay` int unsigned NOT NULL DEFAULT 0,
|
||||||
`rewardTitleId` tinyint unsigned NOT NULL DEFAULT 0,
|
`rewardTitleId` tinyint unsigned NOT NULL DEFAULT 0,
|
||||||
`rewardTalents` tinyint unsigned NOT NULL DEFAULT 0,
|
`rewardTalents` tinyint unsigned NOT NULL DEFAULT 0,
|
||||||
`rewardArenaPoints` smallint unsigned NOT NULL DEFAULT 0,
|
`rewardArenaPoints` smallint NOT NULL DEFAULT 0,
|
||||||
`rewardItemId1` mediumint unsigned NOT NULL DEFAULT 0,
|
`rewardItemId1` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
`rewardItemId2` mediumint unsigned NOT NULL DEFAULT 0,
|
`rewardItemId2` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
`rewardItemId3` mediumint unsigned NOT NULL DEFAULT 0,
|
`rewardItemId3` mediumint unsigned NOT NULL DEFAULT 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user