diff --git a/modules/mod-Forge/sql/world/base/structure.sql b/modules/mod-Forge/sql/world/base/structure.sql index 80ef101e10031b..1c70443bf9cb85 100644 --- a/modules/mod-Forge/sql/world/base/structure.sql +++ b/modules/mod-Forge/sql/world/base/structure.sql @@ -2,7 +2,6 @@ DROP TABLE IF EXISTS `acore_world`.`forge_talents`; DROP TABLE IF EXISTS `acore_world`.`forge_talent_ranks`; DROP TABLE IF EXISTS `acore_world`.`forge_talent_tabs`; DROP TABLE IF EXISTS `acore_world`.`forge_talent_prereq`; -DROP TABLE IF EXISTS `acore_world`.`forge_talent_exclusive`; DROP TABLE IF EXISTS `acore_world`.`forge_talent_unlearn`; DROP TABLE IF EXISTS `acore_world`.`forge_player_spell_scale`; @@ -46,14 +45,6 @@ CREATE TABLE `acore_world`.`forge_talent_prereq` ( `reqRank` INT UNSIGNED NOT NULL, PRIMARY KEY (`reqId`, `spellid`, `talentTabId`)); - -CREATE TABLE `acore_world`.`forge_talent_exclusive` ( - `talentSpellId` MEDIUMINT UNSIGNED NOT NULL, - `talentTabId` INT UNSIGNED NOT NULL, - `exlusiveSpellId` MEDIUMINT UNSIGNED NOT NULL, - PRIMARY KEY (`talentSpellId`, `talentTabId`, `exlusiveSpellId`)); - - CREATE TABLE `acore_world`.`forge_talent_unlearn` ( `talentTabId` INT UNSIGNED NOT NULL, `talentSpellId` MEDIUMINT UNSIGNED NOT NULL, diff --git a/modules/mod-Forge/sql/world/updates/20231014 nodeType to forge talent and choices.sql b/modules/mod-Forge/sql/world/updates/20231014 nodeType to forge talent and choices.sql new file mode 100644 index 00000000000000..fd0991d05a0305 --- /dev/null +++ b/modules/mod-Forge/sql/world/updates/20231014 nodeType to forge talent and choices.sql @@ -0,0 +1,19 @@ +DROP TABLE IF EXISTS `acore_world`.`forge_talent_exclusive`; +DROP TABLE IF EXISTS `acore_characters`.`forge_character_node_choices`; +CREATE TABLE `acore_characters`.`forge_character_node_choices` ( + `guid` INT UNSIGNED NOT NULL, + `spec` INT UNSIGNED NOT NULL, + `tabId` INT UNSIGNED NOT NULL, + `node` TINYINT UNSIGNED NOT NULL, + `choice` INT UNSIGNED NOT NULL, + PRIMARY KEY (`guid`, `spec`, `tabId`, `node`)); + +DROP TABLE IF EXISTS `acore_world`.`forge_talent_choice_nodes`; +CREATE TABLE `acore_world`.`forge_talent_choice_nodes` ( + `choiceNodeId` MEDIUMINT UNSIGNED NOT NULL, + `talentTabId` INT UNSIGNED NOT NULL, + `choiceSpellId` MEDIUMINT UNSIGNED NOT NULL, + PRIMARY KEY (`choiceNodeId`, `talentTabId`, `choiceSpellId`)); + + ALTER TABLE `acore_world`.`forge_talents` + ADD COLUMN `nodeType` TINYINT NOT null default 0; \ No newline at end of file