summaryrefslogtreecommitdiff
path: root/data/sql/base/db_characters
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2021-01-25 19:51:22 +0100
committerGitHub <noreply@github.com>2021-01-25 19:51:22 +0100
commit49712bd12f5404e5935f3f04eeabf8e416fd53d6 (patch)
treeb109f5da64dc138e049655b368f0ec4508178842 /data/sql/base/db_characters
parent2d609e9e48b2e516e4a555015b2662cab15b0c38 (diff)
release: DB squash & begin AC 4.0.0 development (#4341)
Diffstat (limited to 'data/sql/base/db_characters')
-rw-r--r--data/sql/base/db_characters/account_data.sql6
-rw-r--r--data/sql/base/db_characters/account_instance_times.sql4
-rw-r--r--data/sql/base/db_characters/account_tutorial.sql18
-rw-r--r--data/sql/base/db_characters/addons.sql2
-rw-r--r--data/sql/base/db_characters/arena_team.sql28
-rw-r--r--data/sql/base/db_characters/arena_team_member.sql14
-rw-r--r--data/sql/base/db_characters/auctionhouse.sql20
-rw-r--r--data/sql/base/db_characters/banned_addons.sql2
-rw-r--r--data/sql/base/db_characters/calendar_events.sql14
-rw-r--r--data/sql/base/db_characters/calendar_invites.sql14
-rw-r--r--data/sql/base/db_characters/channels.sql4
-rw-r--r--data/sql/base/db_characters/channels_rights.sql2
-rw-r--r--data/sql/base/db_characters/character_account_data.sql6
-rw-r--r--data/sql/base/db_characters/character_achievement.sql2
-rw-r--r--data/sql/base/db_characters/character_achievement_progress.sql2
-rw-r--r--data/sql/base/db_characters/character_action.sql10
-rw-r--r--data/sql/base/db_characters/character_arena_stats.sql6
-rw-r--r--data/sql/base/db_characters/character_aura.sql32
-rw-r--r--data/sql/base/db_characters/character_banned.sql8
-rw-r--r--data/sql/base/db_characters/character_battleground_random.sql2
-rw-r--r--data/sql/base/db_characters/character_brew_of_the_month.sql2
-rw-r--r--data/sql/base/db_characters/character_declinedname.sql2
-rw-r--r--data/sql/base/db_characters/character_entry_point.sql16
-rw-r--r--data/sql/base/db_characters/character_equipmentsets.sql44
-rw-r--r--data/sql/base/db_characters/character_gifts.sql8
-rw-r--r--data/sql/base/db_characters/character_glyphs.sql14
-rw-r--r--data/sql/base/db_characters/character_homebind.sql12
-rw-r--r--data/sql/base/db_characters/character_instance.sql6
-rw-r--r--data/sql/base/db_characters/character_inventory.sql8
-rw-r--r--data/sql/base/db_characters/character_pet.sql32
-rw-r--r--data/sql/base/db_characters/character_pet_declinedname.sql4
-rw-r--r--data/sql/base/db_characters/character_queststatus.sql32
-rw-r--r--data/sql/base/db_characters/character_queststatus_daily.sql6
-rw-r--r--data/sql/base/db_characters/character_queststatus_monthly.sql4
-rw-r--r--data/sql/base/db_characters/character_queststatus_rewarded.sql6
-rw-r--r--data/sql/base/db_characters/character_queststatus_seasonal.sql6
-rw-r--r--data/sql/base/db_characters/character_queststatus_weekly.sql4
-rw-r--r--data/sql/base/db_characters/character_reputation.sql8
-rw-r--r--data/sql/base/db_characters/character_social.sql6
-rw-r--r--data/sql/base/db_characters/character_spell.sql6
-rw-r--r--data/sql/base/db_characters/character_spell_cooldown.sql10
-rw-r--r--data/sql/base/db_characters/character_stats.sql62
-rw-r--r--data/sql/base/db_characters/character_talent.sql2
-rw-r--r--data/sql/base/db_characters/characters.sql143
-rw-r--r--data/sql/base/db_characters/corpse.sql34
-rw-r--r--data/sql/base/db_characters/creature_respawn.sql8
-rw-r--r--data/sql/base/db_characters/game_event_condition_save.sql4
-rw-r--r--data/sql/base/db_characters/game_event_save.sql4
-rw-r--r--data/sql/base/db_characters/gameobject_respawn.sql8
-rw-r--r--data/sql/base/db_characters/gm_subsurvey.sql4
-rw-r--r--data/sql/base/db_characters/gm_survey.sql6
-rw-r--r--data/sql/base/db_characters/gm_ticket.sql30
-rw-r--r--data/sql/base/db_characters/group_member.sql6
-rw-r--r--data/sql/base/db_characters/groups.sql4
-rw-r--r--data/sql/base/db_characters/guild.sql18
-rw-r--r--data/sql/base/db_characters/guild_bank_eventlog.sql18
-rw-r--r--data/sql/base/db_characters/guild_bank_item.sql8
-rw-r--r--data/sql/base/db_characters/guild_bank_right.sql10
-rw-r--r--data/sql/base/db_characters/guild_bank_tab.sql4
-rw-r--r--data/sql/base/db_characters/guild_member_withdraw.sql14
-rw-r--r--data/sql/base/db_characters/guild_rank.sql6
-rw-r--r--data/sql/base/db_characters/instance.sql10
-rw-r--r--data/sql/base/db_characters/instance_reset.sql6
-rw-r--r--data/sql/base/db_characters/item_instance.sql26
-rw-r--r--data/sql/base/db_characters/item_refund_instance.sql4
-rw-r--r--data/sql/base/db_characters/lag_reports.sql16
-rw-r--r--data/sql/base/db_characters/lfg_data.sql6
-rw-r--r--data/sql/base/db_characters/mail.sql28
-rw-r--r--data/sql/base/db_characters/mail_items.sql6
-rw-r--r--data/sql/base/db_characters/pet_aura.sql18
-rw-r--r--data/sql/base/db_characters/pet_spell.sql6
-rw-r--r--data/sql/base/db_characters/pet_spell_cooldown.sql6
-rw-r--r--data/sql/base/db_characters/petition.sql4
-rw-r--r--data/sql/base/db_characters/petition_sign.sql8
-rw-r--r--data/sql/base/db_characters/pool_quest_save.sql4
-rw-r--r--data/sql/base/db_characters/pvpstats_players.sql10
-rw-r--r--data/sql/base/db_characters/quest_tracker.sql6
-rw-r--r--data/sql/base/db_characters/recovery_item.sql31
-rw-r--r--data/sql/base/db_characters/version_db_characters.sql8
-rw-r--r--data/sql/base/db_characters/worldstates.sql19
80 files changed, 543 insertions, 504 deletions
diff --git a/data/sql/base/db_characters/account_data.sql b/data/sql/base/db_characters/account_data.sql
index 9699560e97..67890db458 100644
--- a/data/sql/base/db_characters/account_data.sql
+++ b/data/sql/base/db_characters/account_data.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `account_data`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_data`
(
- `accountId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
+ `accountId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier',
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
`data` blob NOT NULL,
PRIMARY KEY (`accountId`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/account_instance_times.sql b/data/sql/base/db_characters/account_instance_times.sql
index 574372c2d8..348484b88d 100644
--- a/data/sql/base/db_characters/account_instance_times.sql
+++ b/data/sql/base/db_characters/account_instance_times.sql
@@ -10,8 +10,8 @@ DROP TABLE IF EXISTS `account_instance_times`;
CREATE TABLE `account_instance_times`
(
`accountId` int(10) unsigned NOT NULL,
- `instanceId` int(10) unsigned NOT NULL DEFAULT '0',
- `releaseTime` bigint(20) unsigned NOT NULL DEFAULT '0',
+ `instanceId` int(10) unsigned NOT NULL DEFAULT 0,
+ `releaseTime` bigint(20) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`accountId`,`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/account_tutorial.sql b/data/sql/base/db_characters/account_tutorial.sql
index f49736b0cd..a936f13e41 100644
--- a/data/sql/base/db_characters/account_tutorial.sql
+++ b/data/sql/base/db_characters/account_tutorial.sql
@@ -9,15 +9,15 @@ DROP TABLE IF EXISTS `account_tutorial`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tutorial`
(
- `accountId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',
- `tut0` int(10) unsigned NOT NULL DEFAULT '0',
- `tut1` int(10) unsigned NOT NULL DEFAULT '0',
- `tut2` int(10) unsigned NOT NULL DEFAULT '0',
- `tut3` int(10) unsigned NOT NULL DEFAULT '0',
- `tut4` int(10) unsigned NOT NULL DEFAULT '0',
- `tut5` int(10) unsigned NOT NULL DEFAULT '0',
- `tut6` int(10) unsigned NOT NULL DEFAULT '0',
- `tut7` int(10) unsigned NOT NULL DEFAULT '0',
+ `accountId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier',
+ `tut0` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut1` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut2` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut3` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut4` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut5` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut6` int(10) unsigned NOT NULL DEFAULT 0,
+ `tut7` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`accountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/addons.sql b/data/sql/base/db_characters/addons.sql
index dfd79a9beb..3971590c9b 100644
--- a/data/sql/base/db_characters/addons.sql
+++ b/data/sql/base/db_characters/addons.sql
@@ -10,7 +10,7 @@ DROP TABLE IF EXISTS `addons`;
CREATE TABLE `addons`
(
`name` varchar(120) NOT NULL DEFAULT '',
- `crc` int(10) unsigned NOT NULL DEFAULT '0',
+ `crc` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Addons';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/arena_team.sql b/data/sql/base/db_characters/arena_team.sql
index 5303140c92..9682f8210e 100644
--- a/data/sql/base/db_characters/arena_team.sql
+++ b/data/sql/base/db_characters/arena_team.sql
@@ -9,21 +9,21 @@ DROP TABLE IF EXISTS `arena_team`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `arena_team`
(
- `arenaTeamId` int(10) unsigned NOT NULL DEFAULT '0',
+ `arenaTeamId` int(10) unsigned NOT NULL DEFAULT 0,
`name` varchar(24) NOT NULL,
- `captainGuid` int(10) unsigned NOT NULL DEFAULT '0',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `rating` smallint(5) unsigned NOT NULL DEFAULT '0',
- `seasonGames` smallint(5) unsigned NOT NULL DEFAULT '0',
- `seasonWins` smallint(5) unsigned NOT NULL DEFAULT '0',
- `weekGames` smallint(5) unsigned NOT NULL DEFAULT '0',
- `weekWins` smallint(5) unsigned NOT NULL DEFAULT '0',
- `rank` int(10) unsigned NOT NULL DEFAULT '0',
- `backgroundColor` int(10) unsigned NOT NULL DEFAULT '0',
- `emblemStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `emblemColor` int(10) unsigned NOT NULL DEFAULT '0',
- `borderStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `borderColor` int(10) unsigned NOT NULL DEFAULT '0',
+ `captainGuid` int(10) unsigned NOT NULL DEFAULT 0,
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `rating` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `seasonGames` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `seasonWins` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `weekGames` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `weekWins` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `rank` int(10) unsigned NOT NULL DEFAULT 0,
+ `backgroundColor` int(10) unsigned NOT NULL DEFAULT 0,
+ `emblemStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `emblemColor` int(10) unsigned NOT NULL DEFAULT 0,
+ `borderStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `borderColor` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`arenaTeamId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/arena_team_member.sql b/data/sql/base/db_characters/arena_team_member.sql
index 6c09c13878..b2f6de7635 100644
--- a/data/sql/base/db_characters/arena_team_member.sql
+++ b/data/sql/base/db_characters/arena_team_member.sql
@@ -9,13 +9,13 @@ DROP TABLE IF EXISTS `arena_team_member`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `arena_team_member`
(
- `arenaTeamId` int(10) unsigned NOT NULL DEFAULT '0',
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `weekGames` smallint(5) unsigned NOT NULL DEFAULT '0',
- `weekWins` smallint(5) unsigned NOT NULL DEFAULT '0',
- `seasonGames` smallint(5) unsigned NOT NULL DEFAULT '0',
- `seasonWins` smallint(5) unsigned NOT NULL DEFAULT '0',
- `personalRating` smallint(5) NOT NULL DEFAULT '0',
+ `arenaTeamId` int(10) unsigned NOT NULL DEFAULT 0,
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `weekGames` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `weekWins` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `seasonGames` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `seasonWins` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `personalRating` smallint(5) NOT NULL DEFAULT 0,
PRIMARY KEY (`arenaTeamId`,`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/auctionhouse.sql b/data/sql/base/db_characters/auctionhouse.sql
index babae50fb8..0e639f0da8 100644
--- a/data/sql/base/db_characters/auctionhouse.sql
+++ b/data/sql/base/db_characters/auctionhouse.sql
@@ -9,16 +9,16 @@ DROP TABLE IF EXISTS `auctionhouse`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auctionhouse`
(
- `id` int(10) unsigned NOT NULL DEFAULT '0',
- `auctioneerguid` int(10) unsigned NOT NULL DEFAULT '0',
- `itemguid` int(10) unsigned NOT NULL DEFAULT '0',
- `itemowner` int(10) unsigned NOT NULL DEFAULT '0',
- `buyoutprice` int(10) unsigned NOT NULL DEFAULT '0',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
- `buyguid` int(10) unsigned NOT NULL DEFAULT '0',
- `lastbid` int(10) unsigned NOT NULL DEFAULT '0',
- `startbid` int(10) unsigned NOT NULL DEFAULT '0',
- `deposit` int(10) unsigned NOT NULL DEFAULT '0',
+ `id` int(10) unsigned NOT NULL DEFAULT 0,
+ `auctioneerguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `itemguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `itemowner` int(10) unsigned NOT NULL DEFAULT 0,
+ `buyoutprice` int(10) unsigned NOT NULL DEFAULT 0,
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
+ `buyguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `lastbid` int(10) unsigned NOT NULL DEFAULT 0,
+ `startbid` int(10) unsigned NOT NULL DEFAULT 0,
+ `deposit` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `item_guid` (`itemguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/banned_addons.sql b/data/sql/base/db_characters/banned_addons.sql
index 7761e78ff9..76cd90443c 100644
--- a/data/sql/base/db_characters/banned_addons.sql
+++ b/data/sql/base/db_characters/banned_addons.sql
@@ -12,7 +12,7 @@ CREATE TABLE `banned_addons`
`Id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(255) NOT NULL,
`Version` varchar(255) NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`Id`),
UNIQUE KEY `idx_name_ver` (`Name`,`Version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/calendar_events.sql b/data/sql/base/db_characters/calendar_events.sql
index 48e65cda93..1b9df7371d 100644
--- a/data/sql/base/db_characters/calendar_events.sql
+++ b/data/sql/base/db_characters/calendar_events.sql
@@ -9,15 +9,15 @@ DROP TABLE IF EXISTS `calendar_events`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_events`
(
- `id` bigint(20) unsigned NOT NULL DEFAULT '0',
- `creator` int(10) unsigned NOT NULL DEFAULT '0',
+ `id` bigint(20) unsigned NOT NULL DEFAULT 0,
+ `creator` int(10) unsigned NOT NULL DEFAULT 0,
`title` varchar(255) NOT NULL DEFAULT '',
`description` varchar(255) NOT NULL DEFAULT '',
- `type` tinyint(1) unsigned NOT NULL DEFAULT '4',
- `dungeon` int(10) NOT NULL DEFAULT '-1',
- `eventtime` int(10) unsigned NOT NULL DEFAULT '0',
- `flags` int(10) unsigned NOT NULL DEFAULT '0',
- `time2` int(10) unsigned NOT NULL DEFAULT '0',
+ `type` tinyint(1) unsigned NOT NULL DEFAULT 4,
+ `dungeon` int(10) NOT NULL DEFAULT -1,
+ `eventtime` int(10) unsigned NOT NULL DEFAULT 0,
+ `flags` int(10) unsigned NOT NULL DEFAULT 0,
+ `time2` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/calendar_invites.sql b/data/sql/base/db_characters/calendar_invites.sql
index a528adbac1..fff18558bc 100644
--- a/data/sql/base/db_characters/calendar_invites.sql
+++ b/data/sql/base/db_characters/calendar_invites.sql
@@ -9,13 +9,13 @@ DROP TABLE IF EXISTS `calendar_invites`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_invites`
(
- `id` bigint(20) unsigned NOT NULL DEFAULT '0',
- `event` bigint(20) unsigned NOT NULL DEFAULT '0',
- `invitee` int(10) unsigned NOT NULL DEFAULT '0',
- `sender` int(10) unsigned NOT NULL DEFAULT '0',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
- `statustime` int(10) unsigned NOT NULL DEFAULT '0',
- `rank` tinyint(1) unsigned NOT NULL DEFAULT '0',
+ `id` bigint(20) unsigned NOT NULL DEFAULT 0,
+ `event` bigint(20) unsigned NOT NULL DEFAULT 0,
+ `invitee` int(10) unsigned NOT NULL DEFAULT 0,
+ `sender` int(10) unsigned NOT NULL DEFAULT 0,
+ `status` tinyint(1) unsigned NOT NULL DEFAULT 0,
+ `statustime` int(10) unsigned NOT NULL DEFAULT 0,
+ `rank` tinyint(1) unsigned NOT NULL DEFAULT 0,
`text` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/channels.sql b/data/sql/base/db_characters/channels.sql
index 12eaa072b7..8c252c8c96 100644
--- a/data/sql/base/db_characters/channels.sql
+++ b/data/sql/base/db_characters/channels.sql
@@ -12,8 +12,8 @@ CREATE TABLE `channels`
`channelId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`team` int(10) unsigned NOT NULL,
- `announce` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `ownership` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `announce` tinyint(3) unsigned NOT NULL DEFAULT 1,
+ `ownership` tinyint(3) unsigned NOT NULL DEFAULT 1,
`password` varchar(32) DEFAULT NULL,
`lastUsed` int(10) unsigned NOT NULL,
PRIMARY KEY (`channelId`)
diff --git a/data/sql/base/db_characters/channels_rights.sql b/data/sql/base/db_characters/channels_rights.sql
index 4f6c6151ee..335cbd4a27 100644
--- a/data/sql/base/db_characters/channels_rights.sql
+++ b/data/sql/base/db_characters/channels_rights.sql
@@ -14,7 +14,7 @@ CREATE TABLE `channels_rights`
`speakdelay` int(10) unsigned NOT NULL,
`joinmessage` varchar(255) NOT NULL DEFAULT '',
`delaymessage` varchar(255) NOT NULL DEFAULT '',
- `moderators` text,
+ `moderators` text DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_account_data.sql b/data/sql/base/db_characters/character_account_data.sql
index 7b33c28777..ddc50cf5ef 100644
--- a/data/sql/base/db_characters/character_account_data.sql
+++ b/data/sql/base/db_characters/character_account_data.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_account_data`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_account_data`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
`data` blob NOT NULL,
PRIMARY KEY (`guid`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/character_achievement.sql b/data/sql/base/db_characters/character_achievement.sql
index 5cc2d96041..98d3aff8f7 100644
--- a/data/sql/base/db_characters/character_achievement.sql
+++ b/data/sql/base/db_characters/character_achievement.sql
@@ -11,7 +11,7 @@ CREATE TABLE `character_achievement`
(
`guid` int(10) unsigned NOT NULL,
`achievement` smallint(5) unsigned NOT NULL,
- `date` int(10) unsigned NOT NULL DEFAULT '0',
+ `date` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`achievement`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_achievement_progress.sql b/data/sql/base/db_characters/character_achievement_progress.sql
index 7c18bd5be5..4ca3058bf3 100644
--- a/data/sql/base/db_characters/character_achievement_progress.sql
+++ b/data/sql/base/db_characters/character_achievement_progress.sql
@@ -12,7 +12,7 @@ CREATE TABLE `character_achievement_progress`
`guid` int(10) unsigned NOT NULL,
`criteria` smallint(5) unsigned NOT NULL,
`counter` int(10) unsigned NOT NULL,
- `date` int(10) unsigned NOT NULL DEFAULT '0',
+ `date` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`criteria`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_action.sql b/data/sql/base/db_characters/character_action.sql
index 4501ee35ba..6529fb88af 100644
--- a/data/sql/base/db_characters/character_action.sql
+++ b/data/sql/base/db_characters/character_action.sql
@@ -9,11 +9,11 @@ DROP TABLE IF EXISTS `character_action`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_action`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `spec` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `button` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `action` int(10) unsigned NOT NULL DEFAULT '0',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `spec` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `button` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `action` int(10) unsigned NOT NULL DEFAULT 0,
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`spec`,`button`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_arena_stats.sql b/data/sql/base/db_characters/character_arena_stats.sql
index 18ba187de6..30444e18af 100644
--- a/data/sql/base/db_characters/character_arena_stats.sql
+++ b/data/sql/base/db_characters/character_arena_stats.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_arena_stats`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_arena_stats`
(
- `guid` int(10) NOT NULL,
- `slot` tinyint(3) NOT NULL,
- `matchMakerRating` smallint(5) NOT NULL,
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `slot` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `matchMakerRating` smallint(5) unsigned NOT NULL DEFAULT 0,
`maxMMR` smallint(5) NOT NULL,
PRIMARY KEY (`guid`,`slot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/character_aura.sql b/data/sql/base/db_characters/character_aura.sql
index 645269a31f..c27ea96a87 100644
--- a/data/sql/base/db_characters/character_aura.sql
+++ b/data/sql/base/db_characters/character_aura.sql
@@ -9,22 +9,22 @@ DROP TABLE IF EXISTS `character_aura`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_aura`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `casterGuid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Full Global Unique Identifier',
- `itemGuid` bigint(20) unsigned NOT NULL DEFAULT '0',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `effectMask` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `stackCount` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `amount0` int(11) NOT NULL DEFAULT '0',
- `amount1` int(11) NOT NULL DEFAULT '0',
- `amount2` int(11) NOT NULL DEFAULT '0',
- `base_amount0` int(11) NOT NULL DEFAULT '0',
- `base_amount1` int(11) NOT NULL DEFAULT '0',
- `base_amount2` int(11) NOT NULL DEFAULT '0',
- `maxDuration` int(11) NOT NULL DEFAULT '0',
- `remainTime` int(11) NOT NULL DEFAULT '0',
- `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `casterGuid` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT 'Full Global Unique Identifier',
+ `itemGuid` bigint(20) unsigned NOT NULL DEFAULT 0,
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `effectMask` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
+ `amount0` int(11) NOT NULL DEFAULT 0,
+ `amount1` int(11) NOT NULL DEFAULT 0,
+ `amount2` int(11) NOT NULL DEFAULT 0,
+ `base_amount0` int(11) NOT NULL DEFAULT 0,
+ `base_amount1` int(11) NOT NULL DEFAULT 0,
+ `base_amount2` int(11) NOT NULL DEFAULT 0,
+ `maxDuration` int(11) NOT NULL DEFAULT 0,
+ `remainTime` int(11) NOT NULL DEFAULT 0,
+ `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`casterGuid`,`itemGuid`,`spell`,`effectMask`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_banned.sql b/data/sql/base/db_characters/character_banned.sql
index e89d4b0865..a8b82d4ae9 100644
--- a/data/sql/base/db_characters/character_banned.sql
+++ b/data/sql/base/db_characters/character_banned.sql
@@ -9,12 +9,12 @@ DROP TABLE IF EXISTS `character_banned`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_banned`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `bandate` int(10) unsigned NOT NULL DEFAULT '0',
- `unbandate` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `bandate` int(10) unsigned NOT NULL DEFAULT 0,
+ `unbandate` int(10) unsigned NOT NULL DEFAULT 0,
`bannedby` varchar(50) NOT NULL,
`banreason` varchar(255) NOT NULL,
- `active` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `active` tinyint(3) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`guid`,`bandate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Ban List';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_battleground_random.sql b/data/sql/base/db_characters/character_battleground_random.sql
index 901ee8e24e..009baff8dc 100644
--- a/data/sql/base/db_characters/character_battleground_random.sql
+++ b/data/sql/base/db_characters/character_battleground_random.sql
@@ -9,7 +9,7 @@ DROP TABLE IF EXISTS `character_battleground_random`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_battleground_random`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_brew_of_the_month.sql b/data/sql/base/db_characters/character_brew_of_the_month.sql
index 6126e6720c..c23e9325fd 100644
--- a/data/sql/base/db_characters/character_brew_of_the_month.sql
+++ b/data/sql/base/db_characters/character_brew_of_the_month.sql
@@ -10,7 +10,7 @@ DROP TABLE IF EXISTS `character_brew_of_the_month`;
CREATE TABLE `character_brew_of_the_month`
(
`guid` int(10) unsigned NOT NULL,
- `lastEventId` int(10) unsigned NOT NULL DEFAULT '0',
+ `lastEventId` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_declinedname.sql b/data/sql/base/db_characters/character_declinedname.sql
index 9009fc4c38..40483c7924 100644
--- a/data/sql/base/db_characters/character_declinedname.sql
+++ b/data/sql/base/db_characters/character_declinedname.sql
@@ -9,7 +9,7 @@ DROP TABLE IF EXISTS `character_declinedname`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_declinedname`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
`genitive` varchar(15) NOT NULL DEFAULT '',
`dative` varchar(15) NOT NULL DEFAULT '',
`accusative` varchar(15) NOT NULL DEFAULT '',
diff --git a/data/sql/base/db_characters/character_entry_point.sql b/data/sql/base/db_characters/character_entry_point.sql
index 7359d8fc20..763c78ba01 100644
--- a/data/sql/base/db_characters/character_entry_point.sql
+++ b/data/sql/base/db_characters/character_entry_point.sql
@@ -9,14 +9,14 @@ DROP TABLE IF EXISTS `character_entry_point`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_entry_point`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `joinX` float NOT NULL DEFAULT '0',
- `joinY` float NOT NULL DEFAULT '0',
- `joinZ` float NOT NULL DEFAULT '0',
- `joinO` float NOT NULL DEFAULT '0',
- `joinMapId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
- `taxiPath` text,
- `mountSpell` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `joinX` float NOT NULL DEFAULT 0,
+ `joinY` float NOT NULL DEFAULT 0,
+ `joinZ` float NOT NULL DEFAULT 0,
+ `joinO` float NOT NULL DEFAULT 0,
+ `joinMapId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
+ `taxiPath` text DEFAULT NULL,
+ `mountSpell` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_equipmentsets.sql b/data/sql/base/db_characters/character_equipmentsets.sql
index 71527e3fc6..db23d04025 100644
--- a/data/sql/base/db_characters/character_equipmentsets.sql
+++ b/data/sql/base/db_characters/character_equipmentsets.sql
@@ -9,31 +9,31 @@ DROP TABLE IF EXISTS `character_equipmentsets`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_equipmentsets`
(
- `guid` int(10) NOT NULL DEFAULT '0',
+ `guid` int(10) NOT NULL DEFAULT 0,
`setguid` bigint(20) NOT NULL AUTO_INCREMENT,
- `setindex` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `setindex` tinyint(3) unsigned NOT NULL DEFAULT 0,
`name` varchar(31) NOT NULL,
`iconname` varchar(100) NOT NULL,
- `ignore_mask` int(11) unsigned NOT NULL DEFAULT '0',
- `item0` int(11) unsigned NOT NULL DEFAULT '0',
- `item1` int(11) unsigned NOT NULL DEFAULT '0',
- `item2` int(11) unsigned NOT NULL DEFAULT '0',
- `item3` int(11) unsigned NOT NULL DEFAULT '0',
- `item4` int(11) unsigned NOT NULL DEFAULT '0',
- `item5` int(11) unsigned NOT NULL DEFAULT '0',
- `item6` int(11) unsigned NOT NULL DEFAULT '0',
- `item7` int(11) unsigned NOT NULL DEFAULT '0',
- `item8` int(11) unsigned NOT NULL DEFAULT '0',
- `item9` int(11) unsigned NOT NULL DEFAULT '0',
- `item10` int(11) unsigned NOT NULL DEFAULT '0',
- `item11` int(11) unsigned NOT NULL DEFAULT '0',
- `item12` int(11) unsigned NOT NULL DEFAULT '0',
- `item13` int(11) unsigned NOT NULL DEFAULT '0',
- `item14` int(11) unsigned NOT NULL DEFAULT '0',
- `item15` int(11) unsigned NOT NULL DEFAULT '0',
- `item16` int(11) unsigned NOT NULL DEFAULT '0',
- `item17` int(11) unsigned NOT NULL DEFAULT '0',
- `item18` int(11) unsigned NOT NULL DEFAULT '0',
+ `ignore_mask` int(11) unsigned NOT NULL DEFAULT 0,
+ `item0` int(11) unsigned NOT NULL DEFAULT 0,
+ `item1` int(11) unsigned NOT NULL DEFAULT 0,
+ `item2` int(11) unsigned NOT NULL DEFAULT 0,
+ `item3` int(11) unsigned NOT NULL DEFAULT 0,
+ `item4` int(11) unsigned NOT NULL DEFAULT 0,
+ `item5` int(11) unsigned NOT NULL DEFAULT 0,
+ `item6` int(11) unsigned NOT NULL DEFAULT 0,
+ `item7` int(11) unsigned NOT NULL DEFAULT 0,
+ `item8` int(11) unsigned NOT NULL DEFAULT 0,
+ `item9` int(11) unsigned NOT NULL DEFAULT 0,
+ `item10` int(11) unsigned NOT NULL DEFAULT 0,
+ `item11` int(11) unsigned NOT NULL DEFAULT 0,
+ `item12` int(11) unsigned NOT NULL DEFAULT 0,
+ `item13` int(11) unsigned NOT NULL DEFAULT 0,
+ `item14` int(11) unsigned NOT NULL DEFAULT 0,
+ `item15` int(11) unsigned NOT NULL DEFAULT 0,
+ `item16` int(11) unsigned NOT NULL DEFAULT 0,
+ `item17` int(11) unsigned NOT NULL DEFAULT 0,
+ `item18` int(11) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`setguid`),
UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`),
KEY `Idx_setindex` (`setindex`)
diff --git a/data/sql/base/db_characters/character_gifts.sql b/data/sql/base/db_characters/character_gifts.sql
index 7d6f9d2d74..4d21fa5586 100644
--- a/data/sql/base/db_characters/character_gifts.sql
+++ b/data/sql/base/db_characters/character_gifts.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `character_gifts`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_gifts`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `item_guid` int(10) unsigned NOT NULL DEFAULT '0',
- `entry` int(10) unsigned NOT NULL DEFAULT '0',
- `flags` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `item_guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `entry` int(10) unsigned NOT NULL DEFAULT 0,
+ `flags` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`item_guid`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/character_glyphs.sql b/data/sql/base/db_characters/character_glyphs.sql
index 9786a0c225..1e24c573c8 100644
--- a/data/sql/base/db_characters/character_glyphs.sql
+++ b/data/sql/base/db_characters/character_glyphs.sql
@@ -10,13 +10,13 @@ DROP TABLE IF EXISTS `character_glyphs`;
CREATE TABLE `character_glyphs`
(
`guid` int(10) unsigned NOT NULL,
- `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `glyph1` smallint(5) unsigned DEFAULT '0',
- `glyph2` smallint(5) unsigned DEFAULT '0',
- `glyph3` smallint(5) unsigned DEFAULT '0',
- `glyph4` smallint(5) unsigned DEFAULT '0',
- `glyph5` smallint(5) unsigned DEFAULT '0',
- `glyph6` smallint(5) unsigned DEFAULT '0',
+ `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `glyph1` smallint(5) unsigned DEFAULT 0,
+ `glyph2` smallint(5) unsigned DEFAULT 0,
+ `glyph3` smallint(5) unsigned DEFAULT 0,
+ `glyph4` smallint(5) unsigned DEFAULT 0,
+ `glyph5` smallint(5) unsigned DEFAULT 0,
+ `glyph6` smallint(5) unsigned DEFAULT 0,
PRIMARY KEY (`guid`,`talentGroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_homebind.sql b/data/sql/base/db_characters/character_homebind.sql
index 26a12b2ae7..cc45d37fe7 100644
--- a/data/sql/base/db_characters/character_homebind.sql
+++ b/data/sql/base/db_characters/character_homebind.sql
@@ -9,12 +9,12 @@ DROP TABLE IF EXISTS `character_homebind`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_homebind`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `mapId` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
- `zoneId` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Zone Identifier',
- `posX` float NOT NULL DEFAULT '0',
- `posY` float NOT NULL DEFAULT '0',
- `posZ` float NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `mapId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
+ `zoneId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Zone Identifier',
+ `posX` float NOT NULL DEFAULT 0,
+ `posY` float NOT NULL DEFAULT 0,
+ `posZ` float NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_instance.sql b/data/sql/base/db_characters/character_instance.sql
index c724c29ca7..5169dea3c7 100644
--- a/data/sql/base/db_characters/character_instance.sql
+++ b/data/sql/base/db_characters/character_instance.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_instance`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_instance`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `instance` int(10) unsigned NOT NULL DEFAULT '0',
- `permanent` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `instance` int(10) unsigned NOT NULL DEFAULT 0,
+ `permanent` tinyint(3) unsigned NOT NULL DEFAULT 0,
`extended` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`guid`,`instance`),
KEY `instance` (`instance`)
diff --git a/data/sql/base/db_characters/character_inventory.sql b/data/sql/base/db_characters/character_inventory.sql
index e96198728c..77f302dc6e 100644
--- a/data/sql/base/db_characters/character_inventory.sql
+++ b/data/sql/base/db_characters/character_inventory.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `character_inventory`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_inventory`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `bag` int(10) unsigned NOT NULL DEFAULT '0',
- `slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `item` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Global Unique Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `bag` int(10) unsigned NOT NULL DEFAULT 0,
+ `slot` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `item` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Item Global Unique Identifier',
PRIMARY KEY (`item`),
UNIQUE KEY `guid` (`guid`,`bag`,`slot`),
KEY `idx_guid` (`guid`)
diff --git a/data/sql/base/db_characters/character_pet.sql b/data/sql/base/db_characters/character_pet.sql
index d99577e739..9e9cfa4356 100644
--- a/data/sql/base/db_characters/character_pet.sql
+++ b/data/sql/base/db_characters/character_pet.sql
@@ -9,23 +9,23 @@ DROP TABLE IF EXISTS `character_pet`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_pet`
(
- `id` int(10) unsigned NOT NULL DEFAULT '0',
- `entry` int(10) unsigned NOT NULL DEFAULT '0',
- `owner` int(10) unsigned NOT NULL DEFAULT '0',
- `modelid` int(10) unsigned DEFAULT '0',
- `CreatedBySpell` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `PetType` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `level` smallint(5) unsigned NOT NULL DEFAULT '1',
- `exp` int(10) unsigned NOT NULL DEFAULT '0',
- `Reactstate` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `id` int(10) unsigned NOT NULL DEFAULT 0,
+ `entry` int(10) unsigned NOT NULL DEFAULT 0,
+ `owner` int(10) unsigned NOT NULL DEFAULT 0,
+ `modelid` int(10) unsigned DEFAULT 0,
+ `CreatedBySpell` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `PetType` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `level` smallint(5) unsigned NOT NULL DEFAULT 1,
+ `exp` int(10) unsigned NOT NULL DEFAULT 0,
+ `Reactstate` tinyint(3) unsigned NOT NULL DEFAULT 0,
`name` varchar(21) NOT NULL DEFAULT 'Pet',
- `renamed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `curhealth` int(10) unsigned NOT NULL DEFAULT '1',
- `curmana` int(10) unsigned NOT NULL DEFAULT '0',
- `curhappiness` int(10) unsigned NOT NULL DEFAULT '0',
- `savetime` int(10) unsigned NOT NULL DEFAULT '0',
- `abdata` text,
+ `renamed` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `slot` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `curhealth` int(10) unsigned NOT NULL DEFAULT 1,
+ `curmana` int(10) unsigned NOT NULL DEFAULT 0,
+ `curhappiness` int(10) unsigned NOT NULL DEFAULT 0,
+ `savetime` int(10) unsigned NOT NULL DEFAULT 0,
+ `abdata` text DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `owner` (`owner`),
KEY `idx_slot` (`slot`)
diff --git a/data/sql/base/db_characters/character_pet_declinedname.sql b/data/sql/base/db_characters/character_pet_declinedname.sql
index 1aed8571d5..19731675c4 100644
--- a/data/sql/base/db_characters/character_pet_declinedname.sql
+++ b/data/sql/base/db_characters/character_pet_declinedname.sql
@@ -9,8 +9,8 @@ DROP TABLE IF EXISTS `character_pet_declinedname`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_pet_declinedname`
(
- `id` int(10) unsigned NOT NULL DEFAULT '0',
- `owner` int(10) unsigned NOT NULL DEFAULT '0',
+ `id` int(10) unsigned NOT NULL DEFAULT 0,
+ `owner` int(10) unsigned NOT NULL DEFAULT 0,
`genitive` varchar(12) NOT NULL DEFAULT '',
`dative` varchar(12) NOT NULL DEFAULT '',
`accusative` varchar(12) NOT NULL DEFAULT '',
diff --git a/data/sql/base/db_characters/character_queststatus.sql b/data/sql/base/db_characters/character_queststatus.sql
index d981d10380..8bf4e48c86 100644
--- a/data/sql/base/db_characters/character_queststatus.sql
+++ b/data/sql/base/db_characters/character_queststatus.sql
@@ -9,22 +9,22 @@ DROP TABLE IF EXISTS `character_queststatus`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
- `status` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `explored` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `timer` int(10) unsigned NOT NULL DEFAULT '0',
- `mobcount1` smallint(5) unsigned NOT NULL DEFAULT '0',
- `mobcount2` smallint(5) unsigned NOT NULL DEFAULT '0',
- `mobcount3` smallint(5) unsigned NOT NULL DEFAULT '0',
- `mobcount4` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount1` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount2` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount3` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount4` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount5` smallint(5) unsigned NOT NULL DEFAULT '0',
- `itemcount6` smallint(5) unsigned NOT NULL DEFAULT '0',
- `playercount` smallint(5) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
+ `status` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `explored` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `timer` int(10) unsigned NOT NULL DEFAULT 0,
+ `mobcount1` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `mobcount2` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `mobcount3` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `mobcount4` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount1` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount2` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount3` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount4` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount5` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `itemcount6` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `playercount` smallint(5) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`quest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_queststatus_daily.sql b/data/sql/base/db_characters/character_queststatus_daily.sql
index 45a7017369..e2c92849ff 100644
--- a/data/sql/base/db_characters/character_queststatus_daily.sql
+++ b/data/sql/base/db_characters/character_queststatus_daily.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_queststatus_daily`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_daily`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`quest`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/character_queststatus_monthly.sql b/data/sql/base/db_characters/character_queststatus_monthly.sql
index 1d1a8c5076..fd1bda8cd3 100644
--- a/data/sql/base/db_characters/character_queststatus_monthly.sql
+++ b/data/sql/base/db_characters/character_queststatus_monthly.sql
@@ -9,8 +9,8 @@ DROP TABLE IF EXISTS `character_queststatus_monthly`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_monthly`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
PRIMARY KEY (`guid`,`quest`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/character_queststatus_rewarded.sql b/data/sql/base/db_characters/character_queststatus_rewarded.sql
index 3e9dfdb420..63029cae3b 100644
--- a/data/sql/base/db_characters/character_queststatus_rewarded.sql
+++ b/data/sql/base/db_characters/character_queststatus_rewarded.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_queststatus_rewarded`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_rewarded`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
- `active` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
+ `active` tinyint(3) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`guid`,`quest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_queststatus_seasonal.sql b/data/sql/base/db_characters/character_queststatus_seasonal.sql
index a10701458e..ccb69a997c 100644
--- a/data/sql/base/db_characters/character_queststatus_seasonal.sql
+++ b/data/sql/base/db_characters/character_queststatus_seasonal.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_queststatus_seasonal`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_seasonal`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
- `event` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Event Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
+ `event` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Event Identifier',
PRIMARY KEY (`guid`,`quest`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/character_queststatus_weekly.sql b/data/sql/base/db_characters/character_queststatus_weekly.sql
index 48db64b592..7ffae0eb09 100644
--- a/data/sql/base/db_characters/character_queststatus_weekly.sql
+++ b/data/sql/base/db_characters/character_queststatus_weekly.sql
@@ -9,8 +9,8 @@ DROP TABLE IF EXISTS `character_queststatus_weekly`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_weekly`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Quest Identifier',
PRIMARY KEY (`guid`,`quest`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/character_reputation.sql b/data/sql/base/db_characters/character_reputation.sql
index eb89db14a9..116a0afa68 100644
--- a/data/sql/base/db_characters/character_reputation.sql
+++ b/data/sql/base/db_characters/character_reputation.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `character_reputation`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_reputation`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `faction` smallint(5) unsigned NOT NULL DEFAULT '0',
- `standing` int(11) NOT NULL DEFAULT '0',
- `flags` smallint(5) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `faction` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `standing` int(11) NOT NULL DEFAULT 0,
+ `flags` smallint(5) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`faction`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_social.sql b/data/sql/base/db_characters/character_social.sql
index 2d6aba5c4d..a050aa0573 100644
--- a/data/sql/base/db_characters/character_social.sql
+++ b/data/sql/base/db_characters/character_social.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_social`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_social`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
- `friend` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Friend Global Unique Identifier',
- `flags` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Friend Flags',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
+ `friend` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Friend Global Unique Identifier',
+ `flags` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Friend Flags',
`note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note',
PRIMARY KEY (`guid`,`friend`,`flags`),
KEY `friend` (`friend`)
diff --git a/data/sql/base/db_characters/character_spell.sql b/data/sql/base/db_characters/character_spell.sql
index 200313786d..e19374633b 100644
--- a/data/sql/base/db_characters/character_spell.sql
+++ b/data/sql/base/db_characters/character_spell.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `character_spell`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_spell`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier',
- `specMask` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier',
+ `specMask` tinyint(3) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_spell_cooldown.sql b/data/sql/base/db_characters/character_spell_cooldown.sql
index d6b75cc6ef..845f7af2b5 100644
--- a/data/sql/base/db_characters/character_spell_cooldown.sql
+++ b/data/sql/base/db_characters/character_spell_cooldown.sql
@@ -9,11 +9,11 @@ DROP TABLE IF EXISTS `character_spell_cooldown`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_spell_cooldown`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier',
- `item` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Identifier',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
- `needSend` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part',
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier',
+ `item` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Item Identifier',
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
+ `needSend` tinyint(3) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_stats.sql b/data/sql/base/db_characters/character_stats.sql
index c34cac6f4a..5f2c783607 100644
--- a/data/sql/base/db_characters/character_stats.sql
+++ b/data/sql/base/db_characters/character_stats.sql
@@ -9,37 +9,37 @@ DROP TABLE IF EXISTS `character_stats`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_stats`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part',
- `maxhealth` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower1` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower2` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower3` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower4` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower5` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower6` int(10) unsigned NOT NULL DEFAULT '0',
- `maxpower7` int(10) unsigned NOT NULL DEFAULT '0',
- `strength` int(10) unsigned NOT NULL DEFAULT '0',
- `agility` int(10) unsigned NOT NULL DEFAULT '0',
- `stamina` int(10) unsigned NOT NULL DEFAULT '0',
- `intellect` int(10) unsigned NOT NULL DEFAULT '0',
- `spirit` int(10) unsigned NOT NULL DEFAULT '0',
- `armor` int(10) unsigned NOT NULL DEFAULT '0',
- `resHoly` int(10) unsigned NOT NULL DEFAULT '0',
- `resFire` int(10) unsigned NOT NULL DEFAULT '0',
- `resNature` int(10) unsigned NOT NULL DEFAULT '0',
- `resFrost` int(10) unsigned NOT NULL DEFAULT '0',
- `resShadow` int(10) unsigned NOT NULL DEFAULT '0',
- `resArcane` int(10) unsigned NOT NULL DEFAULT '0',
- `blockPct` float unsigned NOT NULL DEFAULT '0',
- `dodgePct` float unsigned NOT NULL DEFAULT '0',
- `parryPct` float unsigned NOT NULL DEFAULT '0',
- `critPct` float unsigned NOT NULL DEFAULT '0',
- `rangedCritPct` float unsigned NOT NULL DEFAULT '0',
- `spellCritPct` float unsigned NOT NULL DEFAULT '0',
- `attackPower` int(10) unsigned NOT NULL DEFAULT '0',
- `rangedAttackPower` int(10) unsigned NOT NULL DEFAULT '0',
- `spellPower` int(10) unsigned NOT NULL DEFAULT '0',
- `resilience` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part',
+ `maxhealth` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower1` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower2` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower3` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower4` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower5` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower6` int(10) unsigned NOT NULL DEFAULT 0,
+ `maxpower7` int(10) unsigned NOT NULL DEFAULT 0,
+ `strength` int(10) unsigned NOT NULL DEFAULT 0,
+ `agility` int(10) unsigned NOT NULL DEFAULT 0,
+ `stamina` int(10) unsigned NOT NULL DEFAULT 0,
+ `intellect` int(10) unsigned NOT NULL DEFAULT 0,
+ `spirit` int(10) unsigned NOT NULL DEFAULT 0,
+ `armor` int(10) unsigned NOT NULL DEFAULT 0,
+ `resHoly` int(10) unsigned NOT NULL DEFAULT 0,
+ `resFire` int(10) unsigned NOT NULL DEFAULT 0,
+ `resNature` int(10) unsigned NOT NULL DEFAULT 0,
+ `resFrost` int(10) unsigned NOT NULL DEFAULT 0,
+ `resShadow` int(10) unsigned NOT NULL DEFAULT 0,
+ `resArcane` int(10) unsigned NOT NULL DEFAULT 0,
+ `blockPct` float unsigned NOT NULL DEFAULT 0,
+ `dodgePct` float unsigned NOT NULL DEFAULT 0,
+ `parryPct` float unsigned NOT NULL DEFAULT 0,
+ `critPct` float unsigned NOT NULL DEFAULT 0,
+ `rangedCritPct` float unsigned NOT NULL DEFAULT 0,
+ `spellCritPct` float unsigned NOT NULL DEFAULT 0,
+ `attackPower` int(10) unsigned NOT NULL DEFAULT 0,
+ `rangedAttackPower` int(10) unsigned NOT NULL DEFAULT 0,
+ `spellPower` int(10) unsigned NOT NULL DEFAULT 0,
+ `resilience` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/character_talent.sql b/data/sql/base/db_characters/character_talent.sql
index 25b3c9b222..b964e64173 100644
--- a/data/sql/base/db_characters/character_talent.sql
+++ b/data/sql/base/db_characters/character_talent.sql
@@ -11,7 +11,7 @@ CREATE TABLE `character_talent`
(
`guid` int(10) unsigned NOT NULL,
`spell` mediumint(8) unsigned NOT NULL,
- `specMask` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `specMask` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/characters.sql b/data/sql/base/db_characters/characters.sql
index 44f33426c5..010afb1b5f 100644
--- a/data/sql/base/db_characters/characters.sql
+++ b/data/sql/base/db_characters/characters.sql
@@ -9,79 +9,80 @@ DROP TABLE IF EXISTS `characters`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `characters`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `account` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `account` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier',
`name` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `race` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `class` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `gender` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `level` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `xp` int(10) unsigned NOT NULL DEFAULT '0',
- `money` int(10) unsigned NOT NULL DEFAULT '0',
- `skin` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `face` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `hairStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `hairColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `facialStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `bankSlots` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `restState` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `playerFlags` int(10) unsigned NOT NULL DEFAULT '0',
- `position_x` float NOT NULL DEFAULT '0',
- `position_y` float NOT NULL DEFAULT '0',
- `position_z` float NOT NULL DEFAULT '0',
- `map` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
- `instance_id` int(10) unsigned NOT NULL DEFAULT '0',
- `instance_mode_mask` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `orientation` float NOT NULL DEFAULT '0',
+ `race` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `class` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `gender` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `level` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `xp` int(10) unsigned NOT NULL DEFAULT 0,
+ `money` int(10) unsigned NOT NULL DEFAULT 0,
+ `skin` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `face` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `hairStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `hairColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `facialStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `bankSlots` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `restState` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `playerFlags` int(10) unsigned NOT NULL DEFAULT 0,
+ `position_x` float NOT NULL DEFAULT 0,
+ `position_y` float NOT NULL DEFAULT 0,
+ `position_z` float NOT NULL DEFAULT 0,
+ `map` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
+ `instance_id` int(10) unsigned NOT NULL DEFAULT 0,
+ `instance_mode_mask` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `orientation` float NOT NULL DEFAULT 0,
`taximask` text NOT NULL,
- `online` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `cinematic` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `totaltime` int(10) unsigned NOT NULL DEFAULT '0',
- `leveltime` int(10) unsigned NOT NULL DEFAULT '0',
- `logout_time` int(10) unsigned NOT NULL DEFAULT '0',
- `is_logout_resting` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `rest_bonus` float NOT NULL DEFAULT '0',
- `resettalents_cost` int(10) unsigned NOT NULL DEFAULT '0',
- `resettalents_time` int(10) unsigned NOT NULL DEFAULT '0',
- `trans_x` float NOT NULL DEFAULT '0',
- `trans_y` float NOT NULL DEFAULT '0',
- `trans_z` float NOT NULL DEFAULT '0',
- `trans_o` float NOT NULL DEFAULT '0',
- `transguid` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `extra_flags` smallint(5) unsigned NOT NULL DEFAULT '0',
- `stable_slots` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `at_login` smallint(5) unsigned NOT NULL DEFAULT '0',
- `zone` smallint(5) unsigned NOT NULL DEFAULT '0',
- `death_expire_time` int(10) unsigned NOT NULL DEFAULT '0',
- `taxi_path` text,
- `arenaPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `totalHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `todayHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `yesterdayHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `totalKills` int(10) unsigned NOT NULL DEFAULT '0',
- `todayKills` smallint(5) unsigned NOT NULL DEFAULT '0',
- `yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT '0',
- `chosenTitle` int(10) unsigned NOT NULL DEFAULT '0',
- `knownCurrencies` bigint(20) unsigned NOT NULL DEFAULT '0',
- `watchedFaction` int(10) unsigned NOT NULL DEFAULT '0',
- `drunk` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `health` int(10) unsigned NOT NULL DEFAULT '0',
- `power1` int(10) unsigned NOT NULL DEFAULT '0',
- `power2` int(10) unsigned NOT NULL DEFAULT '0',
- `power3` int(10) unsigned NOT NULL DEFAULT '0',
- `power4` int(10) unsigned NOT NULL DEFAULT '0',
- `power5` int(10) unsigned NOT NULL DEFAULT '0',
- `power6` int(10) unsigned NOT NULL DEFAULT '0',
- `power7` int(10) unsigned NOT NULL DEFAULT '0',
- `latency` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `talentGroupsCount` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `activeTalentGroup` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `exploredZones` longtext,
- `equipmentCache` longtext,
- `ammoId` int(10) unsigned NOT NULL DEFAULT '0',
- `knownTitles` longtext,
- `actionBars` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `online` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `cinematic` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `totaltime` int(10) unsigned NOT NULL DEFAULT 0,
+ `leveltime` int(10) unsigned NOT NULL DEFAULT 0,
+ `logout_time` int(10) unsigned NOT NULL DEFAULT 0,
+ `is_logout_resting` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `rest_bonus` float NOT NULL DEFAULT 0,
+ `resettalents_cost` int(10) unsigned NOT NULL DEFAULT 0,
+ `resettalents_time` int(10) unsigned NOT NULL DEFAULT 0,
+ `trans_x` float NOT NULL DEFAULT 0,
+ `trans_y` float NOT NULL DEFAULT 0,
+ `trans_z` float NOT NULL DEFAULT 0,
+ `trans_o` float NOT NULL DEFAULT 0,
+ `transguid` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `extra_flags` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `stable_slots` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `at_login` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `zone` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `death_expire_time` int(10) unsigned NOT NULL DEFAULT 0,
+ `taxi_path` text DEFAULT NULL,
+ `arenaPoints` int(10) unsigned NOT NULL DEFAULT 0,
+ `totalHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
+ `todayHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
+ `yesterdayHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
+ `totalKills` int(10) unsigned NOT NULL DEFAULT 0,
+ `todayKills` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `chosenTitle` int(10) unsigned NOT NULL DEFAULT 0,
+ `knownCurrencies` bigint(20) unsigned NOT NULL DEFAULT 0,
+ `watchedFaction` int(10) unsigned NOT NULL DEFAULT 0,
+ `drunk` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `health` int(10) unsigned NOT NULL DEFAULT 0,
+ `power1` int(10) unsigned NOT NULL DEFAULT 0,
+ `power2` int(10) unsigned NOT NULL DEFAULT 0,
+ `power3` int(10) unsigned NOT NULL DEFAULT 0,
+ `power4` int(10) unsigned NOT NULL DEFAULT 0,
+ `power5` int(10) unsigned NOT NULL DEFAULT 0,
+ `power6` int(10) unsigned NOT NULL DEFAULT 0,
+ `power7` int(10) unsigned NOT NULL DEFAULT 0,
+ `latency` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `talentGroupsCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
+ `activeTalentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `exploredZones` longtext DEFAULT NULL,
+ `equipmentCache` longtext DEFAULT NULL,
+ `ammoId` int(10) unsigned NOT NULL DEFAULT 0,
+ `knownTitles` longtext DEFAULT NULL,
+ `actionBars` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
`deleteInfos_Account` int(10) unsigned DEFAULT NULL,
`deleteInfos_Name` varchar(12) DEFAULT NULL,
`deleteDate` int(10) unsigned DEFAULT NULL,
diff --git a/data/sql/base/db_characters/corpse.sql b/data/sql/base/db_characters/corpse.sql
index a025365d1b..48ac7a1380 100644
--- a/data/sql/base/db_characters/corpse.sql
+++ b/data/sql/base/db_characters/corpse.sql
@@ -9,24 +9,24 @@ DROP TABLE IF EXISTS `corpse`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `corpse`
(
- `corpseGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
- `posX` float NOT NULL DEFAULT '0',
- `posY` float NOT NULL DEFAULT '0',
- `posZ` float NOT NULL DEFAULT '0',
- `orientation` float NOT NULL DEFAULT '0',
- `mapId` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
- `phaseMask` int(10) unsigned NOT NULL DEFAULT '1',
- `displayId` int(10) unsigned NOT NULL DEFAULT '0',
+ `corpseGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
+ `posX` float NOT NULL DEFAULT 0,
+ `posY` float NOT NULL DEFAULT 0,
+ `posZ` float NOT NULL DEFAULT 0,
+ `orientation` float NOT NULL DEFAULT 0,
+ `mapId` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
+ `phaseMask` int(10) unsigned NOT NULL DEFAULT 1,
+ `displayId` int(10) unsigned NOT NULL DEFAULT 0,
`itemCache` text NOT NULL,
- `bytes1` int(10) unsigned NOT NULL DEFAULT '0',
- `bytes2` int(10) unsigned NOT NULL DEFAULT '0',
- `guildId` int(10) unsigned NOT NULL DEFAULT '0',
- `flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `dynFlags` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
- `corpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
+ `bytes1` int(10) unsigned NOT NULL DEFAULT 0,
+ `bytes2` int(10) unsigned NOT NULL DEFAULT 0,
+ `guildId` int(10) unsigned NOT NULL DEFAULT 0,
+ `flags` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `dynFlags` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
+ `corpseType` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `instanceId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Instance Identifier',
PRIMARY KEY (`corpseGuid`),
KEY `idx_type` (`corpseType`),
KEY `idx_instance` (`instanceId`),
diff --git a/data/sql/base/db_characters/creature_respawn.sql b/data/sql/base/db_characters/creature_respawn.sql
index 63bf006d0f..177fa42082 100644
--- a/data/sql/base/db_characters/creature_respawn.sql
+++ b/data/sql/base/db_characters/creature_respawn.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `creature_respawn`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `creature_respawn`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `respawnTime` int(10) unsigned NOT NULL DEFAULT '0',
- `mapId` smallint(10) unsigned NOT NULL DEFAULT '0',
- `instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `respawnTime` int(10) unsigned NOT NULL DEFAULT 0,
+ `mapId` smallint(10) unsigned NOT NULL DEFAULT 0,
+ `instanceId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Instance Identifier',
PRIMARY KEY (`guid`,`instanceId`),
KEY `idx_instance` (`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
diff --git a/data/sql/base/db_characters/game_event_condition_save.sql b/data/sql/base/db_characters/game_event_condition_save.sql
index 86f5c8ed5c..ef7c8b2db6 100644
--- a/data/sql/base/db_characters/game_event_condition_save.sql
+++ b/data/sql/base/db_characters/game_event_condition_save.sql
@@ -10,8 +10,8 @@ DROP TABLE IF EXISTS `game_event_condition_save`;
CREATE TABLE `game_event_condition_save`
(
`eventEntry` tinyint(3) unsigned NOT NULL,
- `condition_id` int(10) unsigned NOT NULL DEFAULT '0',
- `done` float DEFAULT '0',
+ `condition_id` int(10) unsigned NOT NULL DEFAULT 0,
+ `done` float DEFAULT 0,
PRIMARY KEY (`eventEntry`,`condition_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/game_event_save.sql b/data/sql/base/db_characters/game_event_save.sql
index 9852b44f14..11f60e1797 100644
--- a/data/sql/base/db_characters/game_event_save.sql
+++ b/data/sql/base/db_characters/game_event_save.sql
@@ -10,8 +10,8 @@ DROP TABLE IF EXISTS `game_event_save`;
CREATE TABLE `game_event_save`
(
`eventEntry` tinyint(3) unsigned NOT NULL,
- `state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `next_start` int(10) unsigned NOT NULL DEFAULT '0',
+ `state` tinyint(3) unsigned NOT NULL DEFAULT 1,
+ `next_start` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`eventEntry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/gameobject_respawn.sql b/data/sql/base/db_characters/gameobject_respawn.sql
index e83b28b728..df7559634b 100644
--- a/data/sql/base/db_characters/gameobject_respawn.sql
+++ b/data/sql/base/db_characters/gameobject_respawn.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `gameobject_respawn`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gameobject_respawn`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `respawnTime` int(10) unsigned NOT NULL DEFAULT '0',
- `mapId` smallint(10) unsigned NOT NULL DEFAULT '0',
- `instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `respawnTime` int(10) unsigned NOT NULL DEFAULT 0,
+ `mapId` smallint(10) unsigned NOT NULL DEFAULT 0,
+ `instanceId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Instance Identifier',
PRIMARY KEY (`guid`,`instanceId`),
KEY `idx_instance` (`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
diff --git a/data/sql/base/db_characters/gm_subsurvey.sql b/data/sql/base/db_characters/gm_subsurvey.sql
index 745571a1ad..353427bed1 100644
--- a/data/sql/base/db_characters/gm_subsurvey.sql
+++ b/data/sql/base/db_characters/gm_subsurvey.sql
@@ -10,8 +10,8 @@ DROP TABLE IF EXISTS `gm_subsurvey`;
CREATE TABLE `gm_subsurvey`
(
`surveyId` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `questionId` int(10) unsigned NOT NULL DEFAULT '0',
- `answer` int(10) unsigned NOT NULL DEFAULT '0',
+ `questionId` int(10) unsigned NOT NULL DEFAULT 0,
+ `answer` int(10) unsigned NOT NULL DEFAULT 0,
`answerComment` text NOT NULL,
PRIMARY KEY (`surveyId`,`questionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/gm_survey.sql b/data/sql/base/db_characters/gm_survey.sql
index 7366c40e50..44d9043929 100644
--- a/data/sql/base/db_characters/gm_survey.sql
+++ b/data/sql/base/db_characters/gm_survey.sql
@@ -10,10 +10,10 @@ DROP TABLE IF EXISTS `gm_survey`;
CREATE TABLE `gm_survey`
(
`surveyId` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `mainSurvey` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `mainSurvey` int(10) unsigned NOT NULL DEFAULT 0,
`comment` longtext NOT NULL,
- `createTime` int(10) unsigned NOT NULL DEFAULT '0',
+ `createTime` int(10) unsigned NOT NULL DEFAULT 0,
`maxMMR` smallint(5) NOT NULL,
PRIMARY KEY (`surveyId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
diff --git a/data/sql/base/db_characters/gm_ticket.sql b/data/sql/base/db_characters/gm_ticket.sql
index 9db70e9515..4994d3e5b6 100644
--- a/data/sql/base/db_characters/gm_ticket.sql
+++ b/data/sql/base/db_characters/gm_ticket.sql
@@ -10,25 +10,25 @@ DROP TABLE IF EXISTS `gm_ticket`;
CREATE TABLE `gm_ticket`
(
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0 open, 1 closed, 2 character deleted',
- `playerGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier of ticket creator',
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '0 open, 1 closed, 2 character deleted',
+ `playerGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier of ticket creator',
`name` varchar(12) NOT NULL COMMENT 'Name of ticket creator',
`description` text NOT NULL,
- `createTime` int(10) unsigned NOT NULL DEFAULT '0',
- `mapId` smallint(5) unsigned NOT NULL DEFAULT '0',
- `posX` float NOT NULL DEFAULT '0',
- `posY` float NOT NULL DEFAULT '0',
- `posZ` float NOT NULL DEFAULT '0',
- `lastModifiedTime` int(10) unsigned NOT NULL DEFAULT '0',
- `closedBy` int(10) unsigned NOT NULL DEFAULT '0',
- `assignedTo` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'GUID of admin to whom ticket is assigned',
+ `createTime` int(10) unsigned NOT NULL DEFAULT 0,
+ `mapId` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `posX` float NOT NULL DEFAULT 0,
+ `posY` float NOT NULL DEFAULT 0,
+ `posZ` float NOT NULL DEFAULT 0,
+ `lastModifiedTime` int(10) unsigned NOT NULL DEFAULT 0,
+ `closedBy` int(10) unsigned NOT NULL DEFAULT 0,
+ `assignedTo` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'GUID of admin to whom ticket is assigned',
`comment` text NOT NULL,
`response` text NOT NULL,
- `completed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `escalated` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `viewed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `needMoreHelp` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `resolvedBy` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'GUID of GM who resolved the ticket',
+ `completed` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `escalated` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `viewed` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `needMoreHelp` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `resolvedBy` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'GUID of GM who resolved the ticket',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/group_member.sql b/data/sql/base/db_characters/group_member.sql
index caa456c378..5eaa2ee281 100644
--- a/data/sql/base/db_characters/group_member.sql
+++ b/data/sql/base/db_characters/group_member.sql
@@ -11,9 +11,9 @@ CREATE TABLE `group_member`
(
`guid` int(10) unsigned NOT NULL,
`memberGuid` int(10) unsigned NOT NULL,
- `memberFlags` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `subgroup` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `roles` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `memberFlags` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `subgroup` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `roles` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`memberGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Groups';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/groups.sql b/data/sql/base/db_characters/groups.sql
index 4bb2a7670a..efca649aa1 100644
--- a/data/sql/base/db_characters/groups.sql
+++ b/data/sql/base/db_characters/groups.sql
@@ -23,8 +23,8 @@ CREATE TABLE `groups`
`icon7` int(10) unsigned NOT NULL,
`icon8` int(10) unsigned NOT NULL,
`groupType` tinyint(3) unsigned NOT NULL,
- `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `raidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `raidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT 0,
`masterLooterGuid` int(10) unsigned NOT NULL,
PRIMARY KEY (`guid`),
KEY `leaderGuid` (`leaderGuid`)
diff --git a/data/sql/base/db_characters/guild.sql b/data/sql/base/db_characters/guild.sql
index 4decd49767..2ed57d09b5 100644
--- a/data/sql/base/db_characters/guild.sql
+++ b/data/sql/base/db_characters/guild.sql
@@ -9,18 +9,18 @@ DROP TABLE IF EXISTS `guild`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0,
`name` varchar(24) NOT NULL DEFAULT '',
- `leaderguid` int(10) unsigned NOT NULL DEFAULT '0',
- `EmblemStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `EmblemColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `BorderStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `BorderColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `BackgroundColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `leaderguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `EmblemStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `EmblemColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `BorderStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `BorderColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `BackgroundColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
`info` varchar(500) NOT NULL DEFAULT '',
`motd` varchar(128) NOT NULL DEFAULT '',
- `createdate` int(10) unsigned NOT NULL DEFAULT '0',
- `BankMoney` bigint(20) unsigned NOT NULL DEFAULT '0',
+ `createdate` int(10) unsigned NOT NULL DEFAULT 0,
+ `BankMoney` bigint(20) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guildid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/guild_bank_eventlog.sql b/data/sql/base/db_characters/guild_bank_eventlog.sql
index 5a272cf5e9..07882e1e28 100644
--- a/data/sql/base/db_characters/guild_bank_eventlog.sql
+++ b/data/sql/base/db_characters/guild_bank_eventlog.sql
@@ -9,15 +9,15 @@ DROP TABLE IF EXISTS `guild_bank_eventlog`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_bank_eventlog`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Guild Identificator',
- `LogGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Log record identificator - auxiliary column',
- `TabId` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Guild bank TabId',
- `EventType` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Event type',
- `PlayerGuid` int(10) unsigned NOT NULL DEFAULT '0',
- `ItemOrMoney` int(10) unsigned NOT NULL DEFAULT '0',
- `ItemStackCount` smallint(5) unsigned NOT NULL DEFAULT '0',
- `DestTabId` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Destination Tab Id',
- `TimeStamp` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Event UNIX time',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Guild Identificator',
+ `LogGuid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Log record identificator - auxiliary column',
+ `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Guild bank TabId',
+ `EventType` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Event type',
+ `PlayerGuid` int(10) unsigned NOT NULL DEFAULT 0,
+ `ItemOrMoney` int(10) unsigned NOT NULL DEFAULT 0,
+ `ItemStackCount` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `DestTabId` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Destination Tab Id',
+ `TimeStamp` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Event UNIX time',
PRIMARY KEY (`guildid`,`LogGuid`,`TabId`),
KEY `guildid_key` (`guildid`),
KEY `Idx_PlayerGuid` (`PlayerGuid`),
diff --git a/data/sql/base/db_characters/guild_bank_item.sql b/data/sql/base/db_characters/guild_bank_item.sql
index 7428bee26e..06c53b6c41 100644
--- a/data/sql/base/db_characters/guild_bank_item.sql
+++ b/data/sql/base/db_characters/guild_bank_item.sql
@@ -9,10 +9,10 @@ DROP TABLE IF EXISTS `guild_bank_item`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_bank_item`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0',
- `TabId` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `SlotId` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `item_guid` int(10) unsigned NOT NULL DEFAULT '0',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0,
+ `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `SlotId` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `item_guid` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guildid`,`TabId`,`SlotId`),
KEY `guildid_key` (`guildid`),
KEY `Idx_item_guid` (`item_guid`)
diff --git a/data/sql/base/db_characters/guild_bank_right.sql b/data/sql/base/db_characters/guild_bank_right.sql
index 53afec9980..0a0c96f811 100644
--- a/data/sql/base/db_characters/guild_bank_right.sql
+++ b/data/sql/base/db_characters/guild_bank_right.sql
@@ -9,11 +9,11 @@ DROP TABLE IF EXISTS `guild_bank_right`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_bank_right`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0',
- `TabId` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `rid` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `gbright` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `SlotPerDay` int(10) unsigned NOT NULL DEFAULT '0',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0,
+ `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `rid` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `gbright` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `SlotPerDay` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guildid`,`TabId`,`rid`),
KEY `guildid_key` (`guildid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/guild_bank_tab.sql b/data/sql/base/db_characters/guild_bank_tab.sql
index 941c3756d2..3af92a59af 100644
--- a/data/sql/base/db_characters/guild_bank_tab.sql
+++ b/data/sql/base/db_characters/guild_bank_tab.sql
@@ -9,8 +9,8 @@ DROP TABLE IF EXISTS `guild_bank_tab`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_bank_tab`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0',
- `TabId` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0,
+ `TabId` tinyint(3) unsigned NOT NULL DEFAULT 0,
`TabName` varchar(16) NOT NULL DEFAULT '',
`TabIcon` varchar(100) NOT NULL DEFAULT '',
`TabText` varchar(500) DEFAULT NULL,
diff --git a/data/sql/base/db_characters/guild_member_withdraw.sql b/data/sql/base/db_characters/guild_member_withdraw.sql
index 3b5b330542..a2b9b8c4fb 100644
--- a/data/sql/base/db_characters/guild_member_withdraw.sql
+++ b/data/sql/base/db_characters/guild_member_withdraw.sql
@@ -10,13 +10,13 @@ DROP TABLE IF EXISTS `guild_member_withdraw`;
CREATE TABLE `guild_member_withdraw`
(
`guid` int(10) unsigned NOT NULL,
- `tab0` int(10) unsigned NOT NULL DEFAULT '0',
- `tab1` int(10) unsigned NOT NULL DEFAULT '0',
- `tab2` int(10) unsigned NOT NULL DEFAULT '0',
- `tab3` int(10) unsigned NOT NULL DEFAULT '0',
- `tab4` int(10) unsigned NOT NULL DEFAULT '0',
- `tab5` int(10) unsigned NOT NULL DEFAULT '0',
- `money` int(10) unsigned NOT NULL DEFAULT '0',
+ `tab0` int(10) unsigned NOT NULL DEFAULT 0,
+ `tab1` int(10) unsigned NOT NULL DEFAULT 0,
+ `tab2` int(10) unsigned NOT NULL DEFAULT 0,
+ `tab3` int(10) unsigned NOT NULL DEFAULT 0,
+ `tab4` int(10) unsigned NOT NULL DEFAULT 0,
+ `tab5` int(10) unsigned NOT NULL DEFAULT 0,
+ `money` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild Member Daily Withdraws';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/guild_rank.sql b/data/sql/base/db_characters/guild_rank.sql
index 321aff0c40..5e153692da 100644
--- a/data/sql/base/db_characters/guild_rank.sql
+++ b/data/sql/base/db_characters/guild_rank.sql
@@ -9,11 +9,11 @@ DROP TABLE IF EXISTS `guild_rank`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_rank`
(
- `guildid` int(10) unsigned NOT NULL DEFAULT '0',
+ `guildid` int(10) unsigned NOT NULL DEFAULT 0,
`rid` tinyint(3) unsigned NOT NULL,
`rname` varchar(20) NOT NULL DEFAULT '',
- `rights` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `BankMoneyPerDay` int(10) unsigned NOT NULL DEFAULT '0',
+ `rights` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `BankMoneyPerDay` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guildid`,`rid`),
KEY `Idx_rid` (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
diff --git a/data/sql/base/db_characters/instance.sql b/data/sql/base/db_characters/instance.sql
index 3350bb3813..7971e9d6b0 100644
--- a/data/sql/base/db_characters/instance.sql
+++ b/data/sql/base/db_characters/instance.sql
@@ -9,11 +9,11 @@ DROP TABLE IF EXISTS `instance`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `instance`
(
- `id` int(10) unsigned NOT NULL DEFAULT '0',
- `map` smallint(5) unsigned NOT NULL DEFAULT '0',
- `resettime` int(10) unsigned NOT NULL DEFAULT '0',
- `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `completedEncounters` int(10) unsigned NOT NULL DEFAULT '0',
+ `id` int(10) unsigned NOT NULL DEFAULT 0,
+ `map` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `resettime` int(10) unsigned NOT NULL DEFAULT 0,
+ `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `completedEncounters` int(10) unsigned NOT NULL DEFAULT 0,
`data` tinytext NOT NULL,
PRIMARY KEY (`id`),
KEY `map` (`map`),
diff --git a/data/sql/base/db_characters/instance_reset.sql b/data/sql/base/db_characters/instance_reset.sql
index 8b7161f59b..5495b4a36d 100644
--- a/data/sql/base/db_characters/instance_reset.sql
+++ b/data/sql/base/db_characters/instance_reset.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `instance_reset`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `instance_reset`
(
- `mapid` smallint(5) unsigned NOT NULL DEFAULT '0',
- `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `resettime` int(10) unsigned NOT NULL DEFAULT '0',
+ `mapid` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `difficulty` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `resettime` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`mapid`,`difficulty`),
KEY `difficulty` (`difficulty`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/data/sql/base/db_characters/item_instance.sql b/data/sql/base/db_characters/item_instance.sql
index 5d1d1f0c93..d1f041301d 100644
--- a/data/sql/base/db_characters/item_instance.sql
+++ b/data/sql/base/db_characters/item_instance.sql
@@ -9,20 +9,20 @@ DROP TABLE IF EXISTS `item_instance`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `item_instance`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `itemEntry` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `owner_guid` int(10) unsigned NOT NULL DEFAULT '0',
- `creatorGuid` int(10) unsigned NOT NULL DEFAULT '0',
- `giftCreatorGuid` int(10) unsigned NOT NULL DEFAULT '0',
- `count` int(10) unsigned NOT NULL DEFAULT '1',
- `duration` int(10) NOT NULL DEFAULT '0',
- `charges` tinytext,
- `flags` mediumint(8) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `itemEntry` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `owner_guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `creatorGuid` int(10) unsigned NOT NULL DEFAULT 0,
+ `giftCreatorGuid` int(10) unsigned NOT NULL DEFAULT 0,
+ `count` int(10) unsigned NOT NULL DEFAULT 1,
+ `duration` int(10) NOT NULL DEFAULT 0,
+ `charges` tinytext DEFAULT NULL,
+ `flags` mediumint(8) unsigned NOT NULL DEFAULT 0,
`enchantments` text NOT NULL,
- `randomPropertyId` smallint(5) NOT NULL DEFAULT '0',
- `durability` smallint(5) unsigned NOT NULL DEFAULT '0',
- `playedTime` int(10) unsigned NOT NULL DEFAULT '0',
- `text` text,
+ `randomPropertyId` smallint(5) NOT NULL DEFAULT 0,
+ `durability` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `playedTime` int(10) unsigned NOT NULL DEFAULT 0,
+ `text` text DEFAULT NULL,
PRIMARY KEY (`guid`),
KEY `idx_owner_guid` (`owner_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item System';
diff --git a/data/sql/base/db_characters/item_refund_instance.sql b/data/sql/base/db_characters/item_refund_instance.sql
index 6108221390..81a714bf3f 100644
--- a/data/sql/base/db_characters/item_refund_instance.sql
+++ b/data/sql/base/db_characters/item_refund_instance.sql
@@ -11,8 +11,8 @@ CREATE TABLE `item_refund_instance`
(
`item_guid` int(10) unsigned NOT NULL COMMENT 'Item GUID',
`player_guid` int(10) unsigned NOT NULL COMMENT 'Player GUID',
- `paidMoney` int(10) unsigned NOT NULL DEFAULT '0',
- `paidExtendedCost` smallint(5) unsigned NOT NULL DEFAULT '0',
+ `paidMoney` int(10) unsigned NOT NULL DEFAULT 0,
+ `paidExtendedCost` smallint(5) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`item_guid`,`player_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item Refund System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/lag_reports.sql b/data/sql/base/db_characters/lag_reports.sql
index 48af8d335a..e18a3c0141 100644
--- a/data/sql/base/db_characters/lag_reports.sql
+++ b/data/sql/base/db_characters/lag_reports.sql
@@ -10,14 +10,14 @@ DROP TABLE IF EXISTS `lag_reports`;
CREATE TABLE `lag_reports`
(
`reportId` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `guid` int(10) unsigned NOT NULL DEFAULT '0',
- `lagType` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `mapId` smallint(5) unsigned NOT NULL DEFAULT '0',
- `posX` float NOT NULL DEFAULT '0',
- `posY` float NOT NULL DEFAULT '0',
- `posZ` float NOT NULL DEFAULT '0',
- `latency` int(10) unsigned NOT NULL DEFAULT '0',
- `createTime` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `lagType` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `mapId` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `posX` float NOT NULL DEFAULT 0,
+ `posY` float NOT NULL DEFAULT 0,
+ `posZ` float NOT NULL DEFAULT 0,
+ `latency` int(10) unsigned NOT NULL DEFAULT 0,
+ `createTime` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`reportId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/lfg_data.sql b/data/sql/base/db_characters/lfg_data.sql
index 163e24769d..b2decaf5e0 100644
--- a/data/sql/base/db_characters/lfg_data.sql
+++ b/data/sql/base/db_characters/lfg_data.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `lfg_data`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lfg_data`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `dungeon` int(10) unsigned NOT NULL DEFAULT '0',
- `state` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `dungeon` int(10) unsigned NOT NULL DEFAULT 0,
+ `state` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='LFG Data';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/mail.sql b/data/sql/base/db_characters/mail.sql
index b331dffc32..f6b66fb8f8 100644
--- a/data/sql/base/db_characters/mail.sql
+++ b/data/sql/base/db_characters/mail.sql
@@ -9,20 +9,20 @@ DROP TABLE IF EXISTS `mail`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail`
(
- `id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Identifier',
- `messageType` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `stationery` tinyint(3) NOT NULL DEFAULT '41',
- `mailTemplateId` smallint(5) unsigned NOT NULL DEFAULT '0',
- `sender` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
- `receiver` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
- `subject` longtext,
- `body` longtext,
- `has_items` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `expire_time` int(10) unsigned NOT NULL DEFAULT '0',
- `deliver_time` int(10) unsigned NOT NULL DEFAULT '0',
- `money` int(10) unsigned NOT NULL DEFAULT '0',
- `cod` int(10) unsigned NOT NULL DEFAULT '0',
- `checked` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Identifier',
+ `messageType` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `stationery` tinyint(3) NOT NULL DEFAULT 41,
+ `mailTemplateId` smallint(5) unsigned NOT NULL DEFAULT 0,
+ `sender` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
+ `receiver` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
+ `subject` longtext DEFAULT NULL,
+ `body` longtext DEFAULT NULL,
+ `has_items` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `expire_time` int(10) unsigned NOT NULL DEFAULT 0,
+ `deliver_time` int(10) unsigned NOT NULL DEFAULT 0,
+ `money` int(10) unsigned NOT NULL DEFAULT 0,
+ `cod` int(10) unsigned NOT NULL DEFAULT 0,
+ `checked` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `idx_receiver` (`receiver`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Mail System';
diff --git a/data/sql/base/db_characters/mail_items.sql b/data/sql/base/db_characters/mail_items.sql
index d785500282..814e924d7f 100644
--- a/data/sql/base/db_characters/mail_items.sql
+++ b/data/sql/base/db_characters/mail_items.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `mail_items`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_items`
(
- `mail_id` int(10) unsigned NOT NULL DEFAULT '0',
- `item_guid` int(10) unsigned NOT NULL DEFAULT '0',
- `receiver` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
+ `mail_id` int(10) unsigned NOT NULL DEFAULT 0,
+ `item_guid` int(10) unsigned NOT NULL DEFAULT 0,
+ `receiver` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
PRIMARY KEY (`item_guid`),
KEY `idx_receiver` (`receiver`),
KEY `idx_mail_id` (`mail_id`)
diff --git a/data/sql/base/db_characters/pet_aura.sql b/data/sql/base/db_characters/pet_aura.sql
index ec17761094..c2a3d8ed43 100644
--- a/data/sql/base/db_characters/pet_aura.sql
+++ b/data/sql/base/db_characters/pet_aura.sql
@@ -9,21 +9,21 @@ DROP TABLE IF EXISTS `pet_aura`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pet_aura`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `casterGuid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Full Global Unique Identifier',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `effectMask` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `stackCount` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `casterGuid` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT 'Full Global Unique Identifier',
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `effectMask` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `recalculateMask` tinyint(3) unsigned NOT NULL DEFAULT 0,
+ `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
`amount0` mediumint(8) NOT NULL,
`amount1` mediumint(8) NOT NULL,
`amount2` mediumint(8) NOT NULL,
`base_amount0` mediumint(8) NOT NULL,
`base_amount1` mediumint(8) NOT NULL,
`base_amount2` mediumint(8) NOT NULL,
- `maxDuration` int(11) NOT NULL DEFAULT '0',
- `remainTime` int(11) NOT NULL DEFAULT '0',
- `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `maxDuration` int(11) NOT NULL DEFAULT 0,
+ `remainTime` int(11) NOT NULL DEFAULT 0,
+ `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`spell`,`effectMask`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/pet_spell.sql b/data/sql/base/db_characters/pet_spell.sql
index bf3557252d..ce2ee9564c 100644
--- a/data/sql/base/db_characters/pet_spell.sql
+++ b/data/sql/base/db_characters/pet_spell.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `pet_spell`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pet_spell`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier',
- `active` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier',
+ `active` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/pet_spell_cooldown.sql b/data/sql/base/db_characters/pet_spell_cooldown.sql
index ec12dc25a8..3fcd4b51a1 100644
--- a/data/sql/base/db_characters/pet_spell_cooldown.sql
+++ b/data/sql/base/db_characters/pet_spell_cooldown.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `pet_spell_cooldown`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pet_spell_cooldown`
(
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part',
- `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier',
- `time` int(10) unsigned NOT NULL DEFAULT '0',
+ `guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier, Low part',
+ `spell` mediumint(8) unsigned NOT NULL DEFAULT 0 COMMENT 'Spell Identifier',
+ `time` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/petition.sql b/data/sql/base/db_characters/petition.sql
index 2ec67c5ec5..8cd6148bd0 100644
--- a/data/sql/base/db_characters/petition.sql
+++ b/data/sql/base/db_characters/petition.sql
@@ -10,9 +10,9 @@ DROP TABLE IF EXISTS `petition`;
CREATE TABLE `petition`
(
`ownerguid` int(10) unsigned NOT NULL,
- `petitionguid` int(10) unsigned DEFAULT '0',
+ `petitionguid` int(10) unsigned DEFAULT 0,
`name` varchar(24) NOT NULL,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`ownerguid`,`type`),
UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
diff --git a/data/sql/base/db_characters/petition_sign.sql b/data/sql/base/db_characters/petition_sign.sql
index 1c6d568000..fb8c7270bf 100644
--- a/data/sql/base/db_characters/petition_sign.sql
+++ b/data/sql/base/db_characters/petition_sign.sql
@@ -10,10 +10,10 @@ DROP TABLE IF EXISTS `petition_sign`;
CREATE TABLE `petition_sign`
(
`ownerguid` int(10) unsigned NOT NULL,
- `petitionguid` int(10) unsigned NOT NULL DEFAULT '0',
- `playerguid` int(10) unsigned NOT NULL DEFAULT '0',
- `player_account` int(10) unsigned NOT NULL DEFAULT '0',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `petitionguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `playerguid` int(10) unsigned NOT NULL DEFAULT 0,
+ `player_account` int(10) unsigned NOT NULL DEFAULT 0,
+ `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`petitionguid`,`playerguid`),
KEY `Idx_playerguid` (`playerguid`),
KEY `Idx_ownerguid` (`ownerguid`)
diff --git a/data/sql/base/db_characters/pool_quest_save.sql b/data/sql/base/db_characters/pool_quest_save.sql
index b9f54c160f..283ad5f23f 100644
--- a/data/sql/base/db_characters/pool_quest_save.sql
+++ b/data/sql/base/db_characters/pool_quest_save.sql
@@ -9,8 +9,8 @@ DROP TABLE IF EXISTS `pool_quest_save`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pool_quest_save`
(
- `pool_id` int(10) unsigned NOT NULL DEFAULT '0',
- `quest_id` int(10) unsigned NOT NULL DEFAULT '0',
+ `pool_id` int(10) unsigned NOT NULL DEFAULT 0,
+ `quest_id` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`pool_id`,`quest_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
diff --git a/data/sql/base/db_characters/pvpstats_players.sql b/data/sql/base/db_characters/pvpstats_players.sql
index c5e8547a8f..fabc983816 100644
--- a/data/sql/base/db_characters/pvpstats_players.sql
+++ b/data/sql/base/db_characters/pvpstats_players.sql
@@ -18,11 +18,11 @@ CREATE TABLE `pvpstats_players`
`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',
+ `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 */;
diff --git a/data/sql/base/db_characters/quest_tracker.sql b/data/sql/base/db_characters/quest_tracker.sql
index c17089add0..2ebefdde42 100644
--- a/data/sql/base/db_characters/quest_tracker.sql
+++ b/data/sql/base/db_characters/quest_tracker.sql
@@ -9,12 +9,12 @@ DROP TABLE IF EXISTS `quest_tracker`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quest_tracker`
(
- `id` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `character_guid` int(10) unsigned NOT NULL DEFAULT '0',
+ `id` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `character_guid` int(10) unsigned NOT NULL DEFAULT 0,
`quest_accept_time` datetime NOT NULL,
`quest_complete_time` datetime DEFAULT NULL,
`quest_abandon_time` datetime DEFAULT NULL,
- `completed_by_gm` tinyint(1) NOT NULL DEFAULT '0',
+ `completed_by_gm` tinyint(1) NOT NULL DEFAULT 0,
`core_hash` varchar(120) NOT NULL DEFAULT '0',
`core_revision` varchar(120) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
diff --git a/data/sql/base/db_characters/recovery_item.sql b/data/sql/base/db_characters/recovery_item.sql
new file mode 100644
index 0000000000..96f6cf58b8
--- /dev/null
+++ b/data/sql/base/db_characters/recovery_item.sql
@@ -0,0 +1,31 @@
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+DROP TABLE IF EXISTS `recovery_item`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `recovery_item`
+(
+ `Id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+ `Guid` int(11) unsigned NOT NULL DEFAULT 0,
+ `ItemEntry` mediumint(8) unsigned NOT NULL DEFAULT 0,
+ `Count` int(11) unsigned NOT NULL DEFAULT 0,
+ PRIMARY KEY (`Id`),
+ KEY `idx_guid` (`Guid`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+LOCK TABLES `recovery_item` WRITE;
+/*!40000 ALTER TABLE `recovery_item` DISABLE KEYS */;
+/*!40000 ALTER TABLE `recovery_item` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
diff --git a/data/sql/base/db_characters/version_db_characters.sql b/data/sql/base/db_characters/version_db_characters.sql
index 01ce566ca7..641b4fcc54 100644
--- a/data/sql/base/db_characters/version_db_characters.sql
+++ b/data/sql/base/db_characters/version_db_characters.sql
@@ -11,7 +11,7 @@ CREATE TABLE `version_db_characters`
(
`sql_rev` varchar(100) NOT NULL,
`required_rev` varchar(100) DEFAULT NULL,
- `2019_01_06_00` bit(1) DEFAULT NULL,
+ `2020_01_04_00` bit(1) DEFAULT NULL,
PRIMARY KEY (`sql_rev`),
KEY `required` (`required_rev`),
CONSTRAINT `required` FOREIGN KEY (`required_rev`) REFERENCES `version_db_characters` (`sql_rev`)
@@ -20,6 +20,12 @@ CREATE TABLE `version_db_characters`
LOCK TABLES `version_db_characters` WRITE;
/*!40000 ALTER TABLE `version_db_characters` DISABLE KEYS */;
+INSERT INTO `version_db_characters` VALUES
+('1557226918417685700',NULL,NULL),
+('1557608218190967100',NULL,NULL),
+('1572030074009407852',NULL,NULL),
+('1572815191193825836',NULL,NULL),
+('1575656087867346414',NULL,NULL);
/*!40000 ALTER TABLE `version_db_characters` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
diff --git a/data/sql/base/db_characters/worldstates.sql b/data/sql/base/db_characters/worldstates.sql
index 86f6d2ddb3..190f75bf46 100644
--- a/data/sql/base/db_characters/worldstates.sql
+++ b/data/sql/base/db_characters/worldstates.sql
@@ -9,9 +9,9 @@ DROP TABLE IF EXISTS `worldstates`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `worldstates`
(
- `entry` int(10) unsigned NOT NULL DEFAULT '0',
- `value` int(10) unsigned NOT NULL DEFAULT '0',
- `comment` tinytext,
+ `entry` int(10) unsigned NOT NULL DEFAULT 0,
+ `value` int(10) unsigned NOT NULL DEFAULT 0,
+ `comment` tinytext DEFAULT NULL,
PRIMARY KEY (`entry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Variable Saves';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -22,12 +22,13 @@ INSERT INTO `worldstates` VALUES
(3781,9000000,NULL),
(3801,0,NULL),
(3802,1,NULL),
-(20001,1454691600,NULL),
-(20002,1471492800,NULL),
-(20003,1471060800,NULL),
-(20005,1471060800,NULL),
-(20006,1471060800,NULL),
-(20007,1472702400,NULL);
+(20001,1454691600,'NextArenaPointDistributionTime'),
+(20002,1471492800,'NextWeeklyQuestResetTime'),
+(20003,1471060800,'NextBGRandomDailyResetTime'),
+(20004,0,'cleaning_flags'),
+(20005,1471060800,'NextDailyQuestResetTime'),
+(20006,1471060800,'NextGuildDailyResetTime'),
+(20007,1472702400,'NextMonthlyQuestResetTime');
/*!40000 ALTER TABLE `worldstates` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;