Skip to content

Add UseOnDuplicateKeyUpdateForSplitTables#983

Open
Traesh wants to merge 1 commit intoTrinityCore:masterfrom
Traesh:UseOnDuplicateKeyUpdateForSplitTables
Open

Add UseOnDuplicateKeyUpdateForSplitTables#983
Traesh wants to merge 1 commit intoTrinityCore:masterfrom
Traesh:UseOnDuplicateKeyUpdateForSplitTables

Conversation

@Traesh
Copy link
Contributor

@Traesh Traesh commented Mar 17, 2026

Add an option to use INSERT ... ON DUPLICATE KEY UPDATE for split SQL generation on shared creature tables.

This avoids the current issue where separate passes for creature_template and creature_template_difficulty each emit their own DELETE + INSERT, causing one pass to remove data produced by the other.

Also included: Fix issues when the last line of creature or gob spawns are commented (temp spawn), meaning ending of the last non-commented line is a coma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant