-- AVA2 64-bit Gold Migration Script -- Date: 2026-10-20 -- Expands gold columns from INT(11) to BIGINT(20) UNSIGNED to support up to 2,000,000,000,000,000 gold. -- 1. Character table (player.player) ALTER TABLE `player` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; -- 2. Safebox table (player.safebox) ALTER TABLE `safebox` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; -- 3. Guild funds (player.guild) ALTER TABLE `guild` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; -- 4. Log tables (if log database exists) ALTER TABLE `log`.`goldlog` MODIFY COLUMN `current_gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMN `change_gold` BIGINT(20) NOT NULL DEFAULT 0;