df7e943a74
AzerothCore's DBUpdater scans modules/<mod>/data/sql/db-{world,characters,auth}/
(see src/server/database/Updater/UpdateFetcher.cpp). The previous
modules/mod-paragon/sql/{world,characters}/base/ layout was non-standard
and skipped by the updater, so a fresh deploy never had Paragon tables
created automatically.
Move all five SQL files into the standard layout. Files are idempotent
(CREATE TABLE IF NOT EXISTS plus a DELETE+INSERT for the cost table)
and now apply on every dbimport / worldserver start, recorded by hash
in <db>.updates so re-runs are skipped.
Update BUILD-NATIVE.md to drop the manual mysql import section, and
document the SQL layout in the mod-paragon README.
Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
537 B
SQL
10 lines
537 B
SQL
-- AE / TE currency storage (Paragon class progression).
|
|
-- Apply to the *character* database (same DB as `characters`, `character_spell`, etc.).
|
|
|
|
CREATE TABLE IF NOT EXISTS `character_paragon_currency` (
|
|
`guid` INT UNSIGNED NOT NULL COMMENT 'characters.guid',
|
|
`ability_essence` SMALLINT UNSIGNED NOT NULL DEFAULT '0',
|
|
`talent_essence` SMALLINT UNSIGNED NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`guid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='mod-paragon: Ability Essence / Talent Essence';
|