AzerothCore
Pages :

Database Squash

Introduction

We do this to update the base files so that a clean install of the server is done quicker and all update files are not needed to be run, as they will already exist in the base files.

How to

We ONLY squash into BASE files. We never move files. ARCHIVE dir is UNUSED. All update files ALWAYS exist in the updates dir.

as the updates table in base files always will contain the entries from the updates dir they will never be run again on a clean setup.

How to do the squash.

  1. Update the acore.json file. Increment version by one
  2. Create a new file in the updates/db_world/ dir, the file should be incremented containing
UPDATE `version` SET `db_version`='ACDB 335.11-dev', `cache_id`=11 LIMIT 1;
  1. Drop all your databases, and run Worldserver to populate a clean database.
  2. Export the databases using i.e HeidiSQL
  1. Move the exported table files into the base directory to update the existing files.
  2. Make a PR