drop usage of holidayIds (as far as possible)
  the obvious change is, that all events are now refenreced by a positive eventId.
  (?event=375 will probably become ?event=5)
Comments
  fixed malformed db-table. It can now hold negative typeIds.
  applying this commit will drop any comments related to events without holiday
  added gain of SiteReputation for comment-replies

resyncing dependencies of 'game_event' is required
This commit is contained in:
Sarjuuk
2015-07-11 23:59:55 +02:00
parent e9399c169a
commit 051334da22
22 changed files with 171 additions and 105 deletions

View File

@@ -1080,7 +1080,7 @@ CREATE TABLE `aowow_items` (
`disenchantId` mediumint(8) unsigned NOT NULL DEFAULT '0',
`duration` int(10) unsigned NOT NULL DEFAULT '0',
`itemLimitCategory` smallint(6) NOT NULL DEFAULT '0',
`holidayId` int(11) unsigned NOT NULL DEFAULT '0',
`eventId` smallint(5) unsigned NOT NULL,
`scriptName` varchar(64) NOT NULL DEFAULT '',
`foodType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`gemEnchantmentId` mediumint(8) NOT NULL,
@@ -1152,7 +1152,7 @@ CREATE TABLE `aowow_itemset` (
`quality` tinyint(4) NOT NULL,
`type` smallint(6) NOT NULL COMMENT 'g_itemset_types',
`contentGroup` smallint(6) NOT NULL COMMENT 'g_itemset_notes',
`holidayId` smallint(3) NOT NULL,
`eventId` smallint(5) unsigned NOT NULL,
`skillId` smallint(3) unsigned NOT NULL,
`skillLevel` smallint(3) unsigned NOT NULL,
PRIMARY KEY (`id`)
@@ -1349,7 +1349,7 @@ CREATE TABLE `aowow_quests` (
`type` smallint(5) unsigned NOT NULL DEFAULT '0',
`suggestedPlayers` tinyint(3) unsigned NOT NULL DEFAULT '0',
`timeLimit` int(10) unsigned NOT NULL DEFAULT '0',
`holidayId` smallint(6) NOT NULL DEFAULT '0',
`eventId` smallint(5) unsigned NOT NULL,
`prevQuestId` mediumint(8) NOT NULL DEFAULT '0',
`nextQuestId` mediumint(8) NOT NULL DEFAULT '0',
`exclusiveGroup` mediumint(8) NOT NULL DEFAULT '0',
@@ -2134,7 +2134,7 @@ CREATE TABLE `aowow_titles` (
`side` tinyint(3) unsigned NOT NULL,
`expansion` tinyint(3) unsigned NOT NULL,
`src12Ext` mediumint(9) unsigned NOT NULL,
`holidayId` smallint(5) unsigned NOT NULL,
`eventId` smallint(5) unsigned NOT NULL,
`male_loc0` varchar(33) NOT NULL,
`male_loc2` varchar(35) NOT NULL,
`male_loc3` varchar(37) NOT NULL,