feat: add AVA2 64-bit gold protocol and client formatting
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# AVA2 64-bit Gold Migration
|
||||
|
||||
## 概述
|
||||
为了与 AVA2 客户端的万亿金币体系(最高 `2,000,000,000,000,000`)对齐,本迁移将数据库 `player`、`safebox`、`guild` 中的 `gold` 字段扩展为 `BIGINT(20) UNSIGNED`。
|
||||
|
||||
## 协议
|
||||
- 封包:`HEADER_GC_EXTENDED_POINTS`(218),Subheader `EXTENDED_POINT_SUB_GOLD_SET`(1)。
|
||||
- 长度:固定 10 字节(Header 1B + Subheader 1B + `int64_t gold` 8B)。
|
||||
|
||||
## 运维执行
|
||||
在执行前确保停服并做逻辑备份:
|
||||
```bash
|
||||
mysqldump -u root -p --single-transaction player > /root/backup-gold/player_before_64bit.sql
|
||||
mysql -u root -p player < migrate_gold_64bit.sql
|
||||
```
|
||||
回滚:
|
||||
```bash
|
||||
mysql -u root -p player < rollback_gold_64bit.sql
|
||||
```
|
||||
Reference in New Issue
Block a user