aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2022-01-14 19:52:56 +0100
committerGitHub <noreply@github.com>2022-01-14 19:52:56 +0100
commit8a61024cfad05279791badf33fcdb5a608ad6e94 (patch)
treee9348ead197bb70545506166205b567099106880 /sql
parent425a1f01893624a947eb830e502f97e4371ef209 (diff)
Core/Player: Added PlayerCreateMode field to playercreateinfo_cast_spell to only cast spells based on related mode (#27593)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2022_01_14_03_world.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_01_14_03_world.sql b/sql/updates/world/master/2022_01_14_03_world.sql
new file mode 100644
index 00000000000..609f4b576a4
--- /dev/null
+++ b/sql/updates/world/master/2022_01_14_03_world.sql
@@ -0,0 +1,4 @@
+--
+ALTER TABLE `playercreateinfo_cast_spell` DROP PRIMARY KEY;
+ALTER TABLE `playercreateinfo_cast_spell` ADD `createMode` tinyint(4) NOT NULL DEFAULT '0' AFTER `classMask`;
+ALTER TABLE `playercreateinfo_cast_spell` ADD PRIMARY KEY(`raceMask`,`classMask`,`createMode`,`spell`);