From b9b14652e83988d9b69326aa7a935c31de6b1823 Mon Sep 17 00:00:00 2001 From: Nay Date: Thu, 13 Dec 2012 00:48:22 +0000 Subject: DB/World: Add missing primary keys to 5 tables Initial patch by @thebillkidy - ref #8646 --- sql/updates/world/2012_12_13_00_world.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sql/updates/world/2012_12_13_00_world.sql (limited to 'sql') diff --git a/sql/updates/world/2012_12_13_00_world.sql b/sql/updates/world/2012_12_13_00_world.sql new file mode 100644 index 00000000000..06d93ad501b --- /dev/null +++ b/sql/updates/world/2012_12_13_00_world.sql @@ -0,0 +1,7 @@ +DELETE FROM `waypoint_data` WHERE `id`=389230 AND `point`=11 AND `position_z`=21.8886; -- duplicated point with wrong `point` + +ALTER TABLE `creature_classlevelstats` ADD PRIMARY KEY (`level`, `class`); +ALTER TABLE `playercreateinfo_item` ADD PRIMARY KEY (`race`, `class`, `itemid`); -- already got (race, class) index +ALTER TABLE `spell_enchant_proc_data` ADD PRIMARY KEY (`entry`); +ALTER TABLE `version` ADD PRIMARY KEY (`core_version`); +ALTER TABLE `waypoint_data` ADD PRIMARY KEY (`id`, `point`); -- cgit v1.2.3