mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 11:25:56 +00:00
Reads one offline character out of a realm's characters database through the existing Db abstraction: fixed SQL with the local guid as the only (numeric) input, one consistent READ ONLY snapshot per character, hex-encoded text. Maps the approved minimal v1 scope to the portable model; refuses online, deleted, bot, active challenge/game mode/Manastorm and unknown-table cases. Adds the 163-table registry, the settings policy, "Make Portable" in one store transaction, and item mapping lifecycle with content identity (schema 2) so a recycled local item guid never inherits an old portable item. Recorded answers of a real MySQL drive the unit tests; live tests re-verify them, read-only enforcement and snapshot consistency on a disposable server. No realm database is written and nothing changes for existing installs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>