diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-04-17 21:01:32 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-04-17 21:01:32 +0200 |
| commit | f88a5b12bd7511331ea27975fe26bfc98d92d20d (patch) | |
| tree | 951d3f4b96aa893c6b725a40e7d38f3d07c40a2e /src/server/database | |
| parent | 616056b9257eb1e267fcd6e8c1d0a3a4687d87a3 (diff) | |
Core/Database: Delete gameobject_addon data when deleting a GameObject from the database
Close #23076
Diffstat (limited to 'src/server/database')
| -rw-r--r-- | src/server/database/Database/Implementation/WorldDatabase.cpp | 1 | ||||
| -rw-r--r-- | src/server/database/Database/Implementation/WorldDatabase.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/server/database/Database/Implementation/WorldDatabase.cpp b/src/server/database/Database/Implementation/WorldDatabase.cpp index 7dc6278621d..3a31530af14 100644 --- a/src/server/database/Database/Implementation/WorldDatabase.cpp +++ b/src/server/database/Database/Implementation/WorldDatabase.cpp @@ -94,6 +94,7 @@ void WorldDatabaseConnection::DoPrepareStatements() PrepareStatement(WORLD_UPD_CREATURE_ZONE_AREA_DATA, "UPDATE creature SET zoneId = ?, areaId = ? WHERE guid = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_UPD_GAMEOBJECT_ZONE_AREA_DATA, "UPDATE gameobject SET zoneId = ?, areaId = ? WHERE guid = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_DEL_SPAWNGROUP_MEMBER, "DELETE FROM spawn_group WHERE spawnType = ? AND spawnId = ?", CONNECTION_ASYNC); + PrepareStatement(WORLD_DEL_GAMEOBJECT_ADDON, "DELETE FROM gameobject_addon WHERE guid = ?", CONNECTION_ASYNC); } WorldDatabaseConnection::WorldDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) diff --git a/src/server/database/Database/Implementation/WorldDatabase.h b/src/server/database/Database/Implementation/WorldDatabase.h index 6c40d0d9c1f..d9db89c26de 100644 --- a/src/server/database/Database/Implementation/WorldDatabase.h +++ b/src/server/database/Database/Implementation/WorldDatabase.h @@ -100,6 +100,7 @@ enum WorldDatabaseStatements : uint32 WORLD_UPD_CREATURE_ZONE_AREA_DATA, WORLD_UPD_GAMEOBJECT_ZONE_AREA_DATA, WORLD_DEL_SPAWNGROUP_MEMBER, + WORLD_DEL_GAMEOBJECT_ADDON, MAX_WORLDDATABASE_STATEMENTS }; |
