Files
ForeverCore/sql
Advocaite d603dfc0ae Classic 1.60: build the world from SQL alone, no vmangos_world database needed
The vanilla world (converted from VMaNGOS db-13b49dc), Zephras Isle and every Forever change now ship as plain SQL:
sql/custom/world/2026_09_27_00_world_forever_baseline_01.sql and _02.sql (about 65 MB together). They hold the
difference between TDB 1210.26091 + TrinityCore's sql/updates and the current Forever world, and are safe to run again.

- The 9 files that read a vmangos_world database (2026_09_27_01..03, 2026_09_28_00, 2026_09_28_10..13,
  2026_09_28_16) are now empty (DO 0;). Their result is part of the baseline. They keep their names so databases
  that already applied them stay in step.
- 2026_10_01_02_world_death_recap_entries.sql can run again (it failed with "Duplicate entry '8100000'" after the
  baseline).
- 2026_10_01_07_world_zephras_graveyards.sql: .tele Zephras gets a fixed id (2314).
- README: building from source needs only the TDB files and sql/.

Verified: a fresh build from TDB + sql/updates + sql/custom on an empty MySQL without vmangos_world gives the same
world and hotfixes tables as the live development database, row for row.

Existing databases: pull and start worldserver. The first start applies the baseline and takes a few minutes; the end
state is the same. The baseline rewrites whole tables (creature, gameobject, smart_scripts, loot, ...), so changes
made to those tables by hand are replaced. vmangos_world can be dropped afterwards.

Known issue: the database updater sometimes does not apply a file
------------------------------------------------------------------
Sometimes worldserver logs ">> Applying update ..." and records the file in the `updates` table, but nothing from
the file reaches the database. It is rare and could not be reproduced on purpose. Typical symptoms afterwards:
"Table '...' doesn't exist", "Unknown column '...' in 'field list'", "Could not prepare statements of the Hotfix
database", or content that is missing in game.

Fix: with worldserver stopped, apply the file by hand. Every file in sql/custom is safe to run again. Example for the
world database (use auth, characters or hotfixes for files in those folders):

  mysql -u trinity -p -h 127.0.0.1 -P 3306 world < sql/custom/world/<file>.sql

or, to let worldserver apply it again on the next start, remove its record:

  DELETE FROM world.updates WHERE name = '<file>.sql';

A file that never ran shows a very small "speed" (ms) in the `updates` table, although a short file can also be
fast, so check the missing table, column or rows themselves.
2026-10-02 20:24:52 +08:00
..
2026-09-09 08:29:11 +00:00