feat(server): save economy hardening and CH5 continuation work

This commit is contained in:
shen
2026-10-22 06:22:23 -07:00
parent c979b53762
commit 5b7442ea37
142 changed files with 5850 additions and 1682 deletions
+4 -14
View File
@@ -1,14 +1,4 @@
-- Metin2 64-bit Gold Migration Script
-- Target: player database (player, safebox, guild)
-- GOLD_MAX_64 = 2,000,000,000,000,000 (2 quadrillion / 2000万亿)
USE `player`;
-- 1. Upgrade player.gold to BIGINT(20) UNSIGNED
ALTER TABLE `player` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;
-- 2. Upgrade safebox.gold to BIGINT(20) UNSIGNED
ALTER TABLE `safebox` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;
-- 3. Upgrade guild.gold to BIGINT(20) UNSIGNED
ALTER TABLE `guild` MODIFY COLUMN `gold` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;
-- Blind DDL cannot verify schema identity, player_deleted, or the actual money_log.
-- Use migrate_gold64.py --player SCHEMA --log LOG_SCHEMA --plan PATH.
-- Apply the reviewed plan with --apply --offline --backup-id BACKUP.
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='Use the source-bound gold migration planner; blind DDL is disabled';